Make WordPress Core


Ignore:
Timestamp:
07/18/2013 07:46:38 PM (12 years ago)
Author:
ryan
Message:

Introduce wp_style_add_data() as a wrapper for $wp_styles->add_data().

Props obenland, nacin
fixes #18753

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/functions.php

    r24736 r24740  
    157157 */
    158158function twentythirteen_scripts_styles() {
    159     global $wp_styles;
    160 
    161159    // Adds JavaScript to pages with the comment form to support sites with
    162160    // threaded comments (when in use).
     
    182180    // Loads the Internet Explorer specific stylesheet.
    183181    wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' );
    184     $wp_styles->add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
     182    wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
    185183}
    186184add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' );
Note: See TracChangeset for help on using the changeset viewer.