Make WordPress Core

Changeset 25949


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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.wp-scripts.php

    r25597 r25949  
    2626 */
    2727function wp_print_scripts( $handles = false ) {
     28    /**
     29     * Fires before scripts in the $handles queue are printed.
     30     *
     31     * @since 2.1.0
     32     */
    2833    do_action( 'wp_print_scripts' );
    2934    if ( '' === $handles ) // for wp_head
  • 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.