- Timestamp:
- 10/07/2025 11:32:04 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentysixteen/inc/customizer.php
r60527 r60913 839 839 * 840 840 * @since Twenty Sixteen 1.0 841 * @since Twenty Sixteen 4.1 Added `wp_print_inline_script_tag()` support. 841 842 */ 842 843 function twentysixteen_color_scheme_css_template() { … … 849 850 'border_color' => '{{ data.border_color }}', 850 851 ); 851 ?> 852 <script type="text/html" id="tmpl-twentysixteen-color-scheme"> 853 <?php echo twentysixteen_get_color_scheme_css( $colors ); ?> 854 </script> 855 <?php 852 853 $css_template = twentysixteen_get_color_scheme_css( $colors ); 854 855 if ( function_exists( 'wp_print_inline_script_tag' ) ) { 856 wp_print_inline_script_tag( 857 $css_template, 858 array( 859 'type' => 'text/html', 860 'id' => 'tmpl-twentysixteen-color-scheme', 861 ) 862 ); 863 } else { 864 echo '<script type="text/html" id="tmpl-twentysixteen-color-scheme">' . $css_template . '</script>'; 865 } 856 866 } 857 867 add_action( 'customize_controls_print_footer_scripts', 'twentysixteen_color_scheme_css_template' );
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)