Changeset 63489
- Timestamp:
- 09/05/2026 05:26:08 AM (4 weeks ago)
- Location:
- branches/7.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/block-supports/states.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/7.1
-
branches/7.1/src/wp-includes/block-supports/states.php
r62720 r63489 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)