Changeset 25949
- Timestamp:
- 10/27/2013 05:50:38 PM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r25597 r25949 26 26 */ 27 27 function wp_print_scripts( $handles = false ) { 28 /** 29 * Fires before scripts in the $handles queue are printed. 30 * 31 * @since 2.1.0 32 */ 28 33 do_action( 'wp_print_scripts' ); 29 34 if ( '' === $handles ) // for wp_head -
trunk/src/wp-includes/script-loader.php
r25839 r25949 691 691 * 692 692 * @since 2.8 693 * 693 694 * @see wp_print_scripts() 694 695 */ … … 696 697 global $wp_scripts, $concatenate_scripts; 697 698 698 if ( ! did_action('wp_print_scripts') ) 699 do_action('wp_print_scripts'); 699 if ( ! did_action('wp_print_scripts') ) { 700 /** This action is documented in wp-includes/functions.wp-scripts.php */ 701 do_action( 'wp_print_scripts' ); 702 } 700 703 701 704 if ( !is_a($wp_scripts, 'WP_Scripts') ) … … 775 778 */ 776 779 function wp_print_head_scripts() { 777 if ( ! did_action('wp_print_scripts') ) 778 do_action('wp_print_scripts'); 780 if ( ! did_action('wp_print_scripts') ) { 781 /** This action is documented in wp-includes/functions.wp-scripts.php */ 782 do_action( 'wp_print_scripts' ); 783 } 779 784 780 785 global $wp_scripts;
Note: See TracChangeset
for help on using the changeset viewer.