Changeset 61246
- Timestamp:
- 11/14/2025 11:36:30 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/typography.php
r61145 r61246 307 307 */ 308 308 function wp_render_typography_support( $block_content, $block ) { 309 if ( ! empty( $block['attrs']['fitText'] ) && ! is_admin() ) {309 if ( ! empty( $block['attrs']['fitText'] ) && $block['attrs']['fitText'] && ! is_admin() ) { 310 310 wp_enqueue_script_module( '@wordpress/block-editor/utils/fit-text-frontend' ); 311 311 … … 323 323 } 324 324 } 325 // fitText supersedes any other typography features 326 return $block_content; 325 327 } 326 328 if ( ! isset( $block['attrs']['style']['typography']['fontSize'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.