Changeset 55427 for trunk/src/wp-content/themes/twentytwenty/functions.php
- Timestamp:
- 02/27/2023 05:30:07 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/functions.php
r55276 r55427 197 197 198 198 // Add output of Customizer settings as inline style. 199 wp_add_inline_style( 'twentytwenty-style', twentytwenty_get_customizer_css( 'front-end' ) ); 199 $customizer_css = twentytwenty_get_customizer_css( 'front-end' ); 200 if ( $customizer_css ) { 201 wp_add_inline_style( 'twentytwenty-style', $customizer_css ); 202 } 200 203 201 204 // Add print CSS. … … 425 428 426 429 // Add inline style from the Customizer. 427 wp_add_inline_style( 'twentytwenty-block-editor-styles', twentytwenty_get_customizer_css( 'block-editor' ) ); 430 $customizer_css = twentytwenty_get_customizer_css( 'block-editor' ); 431 if ( $customizer_css ) { 432 wp_add_inline_style( 'twentytwenty-block-editor-styles', $customizer_css ); 433 } 428 434 429 435 // Add inline style for non-latin fonts. 430 wp_add_inline_style( 'twentytwenty-block-editor-styles', TwentyTwenty_Non_Latin_Languages::get_non_latin_css( 'block-editor' ) ); 436 $custom_css = TwentyTwenty_Non_Latin_Languages::get_non_latin_css( 'block-editor' ); 437 if ( $custom_css ) { 438 wp_add_inline_style( 'twentytwenty-block-editor-styles', $custom_css ); 439 } 431 440 432 441 // Enqueue the editor script. … … 465 474 466 475 $styles = twentytwenty_get_customizer_css( 'classic-editor' ); 476 477 if ( ! $styles ) { 478 return $mce_init; 479 } 467 480 468 481 if ( ! isset( $mce_init['content_style'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.