Changeset 27731
- Timestamp:
- 03/26/2014 05:47:16 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r25465 r27731 37 37 38 38 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 */ 39 46 do_action_ref_array( 'wp_default_scripts', array(&$this) ); 40 47 } … … 98 105 99 106 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 */ 100 115 $srce = apply_filters( 'script_loader_src', $src, $handle ); 101 116 if ( $this->in_default_dir($srce) ) { … … 118 133 $src = add_query_arg('ver', $ver, $src); 119 134 135 /** This filter is documented in wp-includes/class.wp-scripts.php */ 120 136 $src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) ); 121 137 … … 180 196 function all_deps( $handles, $recursion = false, $group = false ) { 181 197 $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 */ 183 206 $this->to_do = apply_filters( 'print_scripts_array', $this->to_do ); 207 } 184 208 return $r; 185 209 }
Note: See TracChangeset
for help on using the changeset viewer.