WordPress.org

Make WordPress Core

Ticket #18753: 18753.twentythirteen.diff

File 18753.twentythirteen.diff, 910 bytes (added by obenland, 5 years ago)

This is how Twenty Thirteen could benefit from it.

  • wp-content/themes/twentythirteen/functions.php

     
    206206 * @return void
    207207 */
    208208function twentythirteen_scripts_styles() {
    209         global $wp_styles;
    210 
    211209        /*
    212210         * Adds JavaScript to pages with the comment form to support sites with
    213211         * threaded comments (when in use).
     
    227225
    228226        // Loads the Internet Explorer specific stylesheet.
    229227        wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '20130213' );
    230         $wp_styles->add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
     228        wp_add_style_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
    231229}
    232230add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' );
    233231