Linux web205 5.14.0-446.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 3 16:10:18 UTC 2024 x86_64
Apache
Server IP : 86.110.243.205 & Your IP : 3.147.51.99
Domains :
Cant Read [ /etc/named.conf ]
User : jp029900
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
jp029900 /
www_root /
wp-includes /
block-supports /
Delete
Unzip
Name
Size
Permission
Date
Action
align.php
1.82
KB
-rwxr-xr-x
2021-01-03 21:11
colors.php
5.86
KB
-rwxr-xr-x
2021-07-19 13:45
custom-classname.php
1.8
KB
-rwxr-xr-x
2021-01-03 21:11
generated-classname.php
1.89
KB
-rwxr-xr-x
2021-07-19 13:45
typography.php
3.19
KB
-rwxr-xr-x
2021-01-03 21:11
Save
Rename
<?php /** * Custom classname block support flag. * * @package WordPress */ /** * Registers the custom classname block attribute for block types that support it. * * @access private * * @param WP_Block_Type $block_type Block Type. */ function wp_register_custom_classname_support( $block_type ) { $has_custom_classname_support = true; if ( property_exists( $block_type, 'supports' ) ) { $has_custom_classname_support = _wp_array_get( $block_type->supports, array( 'customClassName' ), true ); } if ( $has_custom_classname_support ) { if ( ! $block_type->attributes ) { $block_type->attributes = array(); } if ( ! array_key_exists( 'className', $block_type->attributes ) ) { $block_type->attributes['className'] = array( 'type' => 'string', ); } } } /** * Add the custom classnames to the output. * * @access private * * @param WP_Block_Type $block_type Block Type. * @param array $block_attributes Block attributes. * * @return array Block CSS classes and inline styles. */ function wp_apply_custom_classname_support( $block_type, $block_attributes ) { $has_custom_classname_support = true; $attributes = array(); if ( property_exists( $block_type, 'supports' ) ) { $has_custom_classname_support = _wp_array_get( $block_type->supports, array( 'customClassName' ), true ); } if ( $has_custom_classname_support ) { $has_custom_classnames = array_key_exists( 'className', $block_attributes ); if ( $has_custom_classnames ) { $attributes['class'] = $block_attributes['className']; } } return $attributes; } // Register the block support. WP_Block_Supports::get_instance()->register( 'custom-classname', array( 'register_attribute' => 'wp_register_custom_classname_support', 'apply' => 'wp_apply_custom_classname_support', ) );