Changeset 31193
- Timestamp:
- 01/16/2015 02:27:49 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r31192 r31193 75 75 wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); 76 76 77 if ( ! $handles ) { 78 return array(); // No need to instantiate if nothing is there. 79 } 77 global $wp_scripts; 78 if ( ! ( $wp_scripts instanceof WP_Scripts ) ) { 79 if ( ! $handles ) { 80 return array(); // No need to instantiate if nothing is there. 81 } 82 } 83 80 84 return wp_scripts()->do_items( $handles ); 81 85 }
Note: See TracChangeset
for help on using the changeset viewer.