Changeset 31188 for trunk/src/wp-includes/functions.wp-styles.php
- Timestamp:
- 01/16/2015 01:05:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-styles.php
r30674 r31188 35 35 36 36 global $wp_styles; 37 if ( ! is_a( $wp_styles, 'WP_Styles') ) {37 if ( ! ( $wp_styles instanceof WP_Styles ) ) { 38 38 if ( ! did_action( 'init' ) ) 39 39 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), … … 68 68 function wp_add_inline_style( $handle, $data ) { 69 69 global $wp_styles; 70 if ( ! is_a( $wp_styles, 'WP_Styles') ) {70 if ( ! ( $wp_styles instanceof WP_Styles ) ) { 71 71 if ( ! did_action( 'init' ) ) 72 72 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), … … 103 103 function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) { 104 104 global $wp_styles; 105 if ( ! is_a( $wp_styles, 'WP_Styles') ) {105 if ( ! ( $wp_styles instanceof WP_Styles ) ) { 106 106 if ( ! did_action( 'init' ) ) 107 107 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), … … 125 125 function wp_deregister_style( $handle ) { 126 126 global $wp_styles; 127 if ( ! is_a( $wp_styles, 'WP_Styles') ) {127 if ( ! ( $wp_styles instanceof WP_Styles ) ) { 128 128 if ( ! did_action( 'init' ) ) 129 129 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), … … 158 158 function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all' ) { 159 159 global $wp_styles; 160 if ( ! is_a( $wp_styles, 'WP_Styles') ) {160 if ( ! ( $wp_styles instanceof WP_Styles ) ) { 161 161 if ( ! did_action( 'init' ) ) 162 162 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), … … 184 184 function wp_dequeue_style( $handle ) { 185 185 global $wp_styles; 186 if ( ! is_a( $wp_styles, 'WP_Styles') ) {186 if ( ! ( $wp_styles instanceof WP_Styles ) ) { 187 187 if ( ! did_action( 'init' ) ) 188 188 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), … … 208 208 function wp_style_is( $handle, $list = 'enqueued' ) { 209 209 global $wp_styles; 210 if ( ! is_a( $wp_styles, 'WP_Styles') ) {210 if ( ! ( $wp_styles instanceof WP_Styles ) ) { 211 211 if ( ! did_action( 'init' ) ) 212 212 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
Note: See TracChangeset
for help on using the changeset viewer.