Subir ajustes de acordeon y SEO

This commit is contained in:
Gabriel
2026-10-23 11:18:13 -06:00
parent 03333c3ce7
commit 14b96152a5
103 changed files with 6638 additions and 5316 deletions
+10 -1
View File
@@ -542,6 +542,16 @@ function wp_render_block_states_support( $block_content, $block ) {
return $block_content;
}
/*
* Every CSS rule this function can produce is keyed off the block's `style`
* attribute. Without it there is nothing to generate, so bail before doing
* any of the lookups below — this runs for every block on every request.
*/
$style = $block['attrs']['style'] ?? array();
if ( empty( $style ) || ! is_array( $style ) ) {
return $block_content;
}
$block_name = $block['blockName'];
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_name );
if ( ! $block_type ) {
@@ -549,7 +559,6 @@ function wp_render_block_states_support( $block_content, $block ) {
}
$supported_pseudo_states = WP_Theme_JSON::VALID_BLOCK_PSEUDO_SELECTORS[ $block_name ] ?? array();
$style = $block['attrs']['style'] ?? array();
$css_rules = array();
$viewport_settings = wp_get_global_settings( array( 'viewport' ) );
$responsive_media_queries = WP_Theme_JSON::get_viewport_media_queries( $viewport_settings );