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DL1&&1ĶW=+x^8mhchj]W|ƸΤ }ɚ;d%1s1ay*vɪg,sYA,^TʂyvCxo u T.jD qʱNִT-]yc8$ReOLŸUf4cBPxO1Нfc$֤fNl( ׫0na9z9 dNT 4ОVYnm$(W rA~HM[@ ,#^k_n)] ŕ}+y&d8vr$Y޿֘|2 |R![Rq|w6g)d F >UK%Bi) 2etizqղX)yb/yE$.OK/$cݕUL%6%u Ķ%ƴR9t6EL8hR F֨95i47)a(S;2 XqlJt&Z-@瘪P|ZDpPŕ-6 H"1>:R_ҍT^3>ЉOHEEq _9k}g$k1;^^G<~wݴЉ+DC!RndVaiV$s=r%Gles( array( 'dimensions' => $dimensions_block_styles ) ); if ( ! empty( $styles['css'] ) ) { // Inject dimensions styles to the first element, presuming it's the wrapper, if it exists. $tags = new WP_HTML_Tag_Processor( $block_content ); if ( $tags->next_tag() ) { $existing_style = $tags->get_attribute( 'style' ); $updated_style = ''; if ( ! empty( $existing_style ) ) { $updated_style = $existing_style; if ( ! str_ends_with( $existing_style, ';' ) ) { $updated_style .= ';'; } } $updated_style .= $styles['css']; $tags->set_attribute( 'style', $updated_style ); if ( ! empty( $styles['classnames'] ) ) { foreach ( explode( ' ', $styles['classnames'] ) as $class_name ) { if ( str_contains( $class_name, 'aspect-ratio' ) && ! isset( $block_attributes['style']['dimensions']['aspectRatio'] ) ) { continue; } $tags->add_class( $class_name ); } } } return $tags->get_updated_html(); } return $block_content; } add_filter( 'render_block', 'wp_render_dimensions_support', 10, 2 ); // Register the block support. WP_Block_Supports::get_instance()->register( 'dimensions', array( 'register_attribute' => 'wp_register_dimensions_support', 'apply' => 'wp_apply_dimensions_support', ) );