$77 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/wp-includes/block-supports/

HOME
Current File : /home/bravetechrwanda/itiministry.org/wp-includes/block-supports//generated-classname.php
<?php
/**
 * Generated classname block support flag.
 *
 * @package WordPress
 * @since 5.6.0
 */

/**
 * Gets the generated classname from a given block name.
 *
 * @since 5.6.0
 *
 * @access private
 *
 * @param string $block_name Block Name.
 * @return string Generated classname.
 */
function wp_get_block_default_classname( $block_name ) {
	// Generated HTML classes for blocks follow the `wp-block-{name}` nomenclature.
	// Blocks provided by WordPress drop the prefixes 'core/' or 'core-' (historically used in 'core-embed/').
	$classname = 'wp-block-' . preg_replace(
		'/^core-/',
		'',
		str_replace( '/', '-', $block_name )
	);

	/**
	 * Filters the default block className for server rendered blocks.
	 *
	 * @since 5.6.0
	 *
	 * @param string $class_name The current applied classname.
	 * @param string $block_name The block name.
	 */
	$classname = apply_filters( 'block_default_classname', $classname, $block_name );

	return $classname;
}

/**
 * Adds the generated classnames to the output.
 *
 * @since 5.6.0
 *
 * @access private
 *
 * @param WP_Block_Type $block_type Block Type.
 * @return array Block CSS classes and inline styles.
 */
function wp_apply_generated_classname_support( $block_type ) {
	$attributes                      = array();
	$has_generated_classname_support = block_has_support( $block_type, 'className', true );
	if ( $has_generated_classname_support ) {
		$block_classname = wp_get_block_default_classname( $block_type->name );

		if ( $block_classname ) {
			$attributes['class'] = $block_classname;
		}
	}

	return $attributes;
}

// Register the block support.
WP_Block_Supports::get_instance()->register(
	'generated-classname',
	array(
		'apply' => 'wp_apply_generated_classname_support',
	)
);

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 May 2026 4.37 PM
bravetechrwanda / bravetechrwanda
0755
wk
--
6 May 2026 3.22 AM
bravetechrwanda / bravetechrwanda
0755
wp-site
--
4 May 2026 11.57 PM
bravetechrwanda / bravetechrwanda
0755
align.php
1.668 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
api-request.js
3.246 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
aria-label-20260509105113.php
1.573 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
aria-label.php
1.573 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
block-style-variations.php
9.197 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
block-visibility.php
0.834 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
border-20260504132948.php
6.271 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
border.php
6.271 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
class-wp-admin-bar.php
17.455 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
class-wp-block-pattern-categories-registry.php
5.322 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
class-wp-customize-manager.php
198.378 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
class-wp-customize-widgets.php
70.905 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
class-wp-metadata-lazyloader.php
6.673 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
class-wp-scripts.php
34.047 KB
3 Feb 2026 8.22 PM
bravetechrwanda / bravetechrwanda
0644
colors.php
5.811 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
custom-classname.php
1.636 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
default-widgets.php
2.241 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
dimensions.php
5.28 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
duotone.php
2.667 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
elements.php
8.461 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
general-template.php
168.949 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
generated-classname-20260510010048.php
1.704 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
generated-classname.php
1.704 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
http.php
27.012 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
layout.php
38.995 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
locale.php
0.158 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
meta.php
64.996 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
position.php
4.235 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
rss-functions.php
0.249 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
settings.php
4.521 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
shadow.php
2.044 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
spacing.php
2.809 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
spl-autoload-compat.php
0.431 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
theme.php
133.695 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
typography.php
29.083 KB
2 Dec 2025 11.05 PM
bravetechrwanda / bravetechrwanda
0644
utils-20260504211753.php
0.987 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
utils.php
0.987 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
wp-diff.php
0.78 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF