Changeset 63474
- Timestamp:
- 09/04/2026 05:41:47 PM (6 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-supports/states.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/states.php
r63426 r63474 543 543 } 544 544 545 /* 546 * Every CSS rule this function can produce is keyed off the block's `style` 547 * attribute. Without it there is nothing to generate, so bail before doing 548 * any of the lookups below — this runs for every block on every request. 549 */ 550 $style = $block['attrs']['style'] ?? array(); 551 if ( empty( $style ) || ! is_array( $style ) ) { 552 return $block_content; 553 } 554 545 555 $block_name = $block['blockName']; 546 556 $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_name ); … … 550 560 551 561 $supported_pseudo_states = WP_Theme_JSON::VALID_BLOCK_PSEUDO_SELECTORS[ $block_name ] ?? array(); 552 $style = $block['attrs']['style'] ?? array();553 562 $css_rules = array(); 554 563 $viewport_settings = wp_get_global_settings( array( 'viewport' ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)