Changeset 56559 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 09/12/2023 03:21:02 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r56500 r56559 2454 2454 return array_filter( 2455 2455 $nodes, 2456 static function ( $node ) {2456 static function ( $node ) { 2457 2457 return ! in_array( 'blocks', $node['path'], true ); 2458 2458 }, … … 2656 2656 add_filter( 2657 2657 'render_block', 2658 static function ( $html, $block ) use ( $block_name, $style_properties ) {2658 static function ( $html, $block ) use ( $block_name, $style_properties ) { 2659 2659 if ( $block['blockName'] === $block_name ) { 2660 2660 wp_enqueue_style( $style_properties['style_handle'] ); … … 2918 2918 usort( 2919 2919 $styles, 2920 static function ( $a, $b ) {2920 static function ( $a, $b ) { 2921 2921 return ( $a['size'] <= $b['size'] ) ? -1 : 1; 2922 2922 } … … 3151 3151 * @return string Block content. 3152 3152 */ 3153 $callback = static function ( $content ) use ( $args ) {3153 $callback = static function ( $content ) use ( $args ) { 3154 3154 // Register the stylesheet. 3155 3155 if ( ! empty( $args['src'] ) ) { … … 3189 3189 * @return string Block content. 3190 3190 */ 3191 $callback_separate = static function ( $content, $block ) use ( $block_name, $callback ) {3191 $callback_separate = static function ( $content, $block ) use ( $block_name, $callback ) { 3192 3192 if ( ! empty( $block['blockName'] ) && $block_name === $block['blockName'] ) { 3193 3193 return $callback( $content );
Note: See TracChangeset
for help on using the changeset viewer.