Make WordPress Core


Ignore:
Timestamp:
10/27/2013 05:50:38 PM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-includes/functions.wp-scripts.php.

Props ninio for the initial patch.
Fixes #25720.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r25839 r25949  
    691691 *
    692692 * @since 2.8
     693 *
    693694 * @see wp_print_scripts()
    694695 */
     
    696697    global $wp_scripts, $concatenate_scripts;
    697698
    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    }
    700703
    701704    if ( !is_a($wp_scripts, 'WP_Scripts') )
     
    775778 */
    776779function 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    }
    779784
    780785    global $wp_scripts;
Note: See TracChangeset for help on using the changeset viewer.