Changeset 18557 for trunk/wp-includes/functions.wp-styles.php
- Timestamp:
- 08/17/2011 06:26:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.wp-styles.php
r18556 r18557 174 174 175 175 if ( !$done && !is_a($wp_styles, 'WP_Styles') ) { 176 if ( !did_action('after_setup_theme') ) { 177 $func = debug_backtrace(); 178 $trace = !empty($func[1]['function']) ? $func[1]['function'] : __FUNCTION__; 179 180 _doing_it_wrong( $trace, __( '$wp_styles should not be accessed before the "init" hook.' ), '3.3' ); 181 } 176 if ( !did_action('after_setup_theme') ) 177 _doing_it_wrong( __FUNCTION__, __( '$wp_styles should not be accessed before the "init" hook.' ), '3.3' ); 182 178 183 179 $wp_styles = new WP_Styles();
Note: See TracChangeset
for help on using the changeset viewer.