Changeset 43571 for trunk/src/wp-includes/theme.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r43039 r43571 726 726 if ( is_array( $_sidebars_widgets ) ) { 727 727 set_theme_mod( 728 'sidebars_widgets', array( 728 'sidebars_widgets', 729 array( 729 730 'time' => time(), 730 731 'data' => $_sidebars_widgets, … … 1678 1679 $style .= $image . $position . $size . $repeat . $attachment; 1679 1680 } 1680 ?>1681 ?> 1681 1682 <style type="text/css" id="custom-background-css"> 1682 1683 body.custom-background { <?php echo trim( $style ); ?> } 1683 1684 </style> 1684 <?php1685 <?php 1685 1686 } 1686 1687 … … 1693 1694 $styles = wp_get_custom_css(); 1694 1695 if ( $styles || is_customize_preview() ) : 1695 ?>1696 ?> 1696 1697 <style type="text/css" id="wp-custom-css"> 1697 1698 <?php echo strip_tags( $styles ); // Note that esc_html() cannot be used because `div > span` is not interpreted properly. ?> 1698 1699 </style> 1699 <?php1700 <?php 1700 1701 endif; 1701 1702 } … … 1803 1804 function wp_update_custom_css_post( $css, $args = array() ) { 1804 1805 $args = wp_parse_args( 1805 $args, array( 1806 $args, 1807 array( 1806 1808 'preprocessed' => '', 1807 1809 'stylesheet' => get_stylesheet(), … … 2022 2024 'title' => _x( 'Find Us', 'Theme starter content' ), 2023 2025 'text' => join( 2024 '', array( 2026 '', 2027 array( 2025 2028 '<strong>' . _x( 'Address', 'Theme starter content' ) . "</strong>\n", 2026 2029 _x( '123 Main Street', 'Theme starter content' ) . "\n" . _x( 'New York, NY 10001', 'Theme starter content' ) . "\n\n", … … 2540 2543 /* translators: 1: title-tag, 2: wp_loaded */ 2541 2544 _doing_it_wrong( 2542 "add_theme_support( 'title-tag' )", sprintf( 2545 "add_theme_support( 'title-tag' )", 2546 sprintf( 2543 2547 __( 'Theme support for %1$s should be registered before the %2$s hook.' ), 2544 '<code>title-tag</code>', '<code>wp_loaded</code>' 2545 ), '4.1.0' 2548 '<code>title-tag</code>', 2549 '<code>wp_loaded</code>' 2550 ), 2551 '4.1.0' 2546 2552 ); 2547 2553 … … 2614 2620 } 2615 2621 </style> 2616 <?php2622 <?php 2617 2623 } 2618 2624 }
Note: See TracChangeset
for help on using the changeset viewer.