WordPress.org

Make WordPress Core

Changeset 27731


Ignore:
Timestamp:
03/26/2014 05:47:16 AM (6 years ago)
Author:
DrewAPicture
Message:

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

Props kpdesign for a wording switcheroo.
Fixes #27518.

File:
1 edited

Legend:

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

    r25465 r27731  
    3737
    3838    function init() {
     39        /**
     40         * Fires when the WP_Scripts instance is initialized.
     41         *
     42         * @since 2.6.0
     43         *
     44         * @param WP_Scripts &$this WP_Scripts instance, passed by reference.
     45         */
    3946        do_action_ref_array( 'wp_default_scripts', array(&$this) );
    4047    }
     
    98105
    99106        if ( $this->do_concat ) {
     107            /**
     108             * Filter the script loader source.
     109             *
     110             * @since 2.2.0
     111             *
     112             * @param string $src    Script loader source path.
     113             * @param string $handle Script handle.
     114             */
    100115            $srce = apply_filters( 'script_loader_src', $src, $handle );
    101116            if ( $this->in_default_dir($srce) ) {
     
    118133            $src = add_query_arg('ver', $ver, $src);
    119134
     135        /** This filter is documented in wp-includes/class.wp-scripts.php */
    120136        $src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );
    121137
     
    180196    function all_deps( $handles, $recursion = false, $group = false ) {
    181197        $r = parent::all_deps( $handles, $recursion );
    182         if ( !$recursion )
     198        if ( ! $recursion ) {
     199            /**
     200             * Filter the list of script dependencies left to print.
     201             *
     202             * @since 2.3.0
     203             *
     204             * @param array $to_do An array of script dependencies.
     205             */
    183206            $this->to_do = apply_filters( 'print_scripts_array', $this->to_do );
     207        }
    184208        return $r;
    185209    }
Note: See TracChangeset for help on using the changeset viewer.