Changeset 32566
- Timestamp:
- 05/24/2015 05:04:39 AM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r32124 r32566 62 62 } 63 63 64 // Deprecated since 3.3, see print_extra_script() 64 /** 65 * @deprecated 3.3 66 * @see print_extra_script() 67 * 68 * @param string $handle 69 * @param bool $echo 70 * @return bool|string|null 71 */ 65 72 public function print_scripts_l10n( $handle, $echo = true ) { 66 73 _deprecated_function( __FUNCTION__, '3.3', 'print_extra_script()' ); … … 68 75 } 69 76 77 /** 78 * @param string $handle 79 * @param bool $echo 80 * @return bool|string|null 81 */ 70 82 public function print_extra_script( $handle, $echo = true ) { 71 83 if ( !$output = $this->get_data( $handle, 'data' ) ) … … 84 96 } 85 97 98 /** 99 * @param string $handle Name of the item. Should be unique. 100 * @param int|bool $group 101 * @return bool True on success, false if not set. 102 */ 86 103 public function do_item( $handle, $group = false ) { 87 104 if ( !parent::do_item($handle) ) … … 164 181 $tag = "{$cond_before}<script type='text/javascript' src='$src'></script>\n{$cond_after}"; 165 182 166 /** 183 /** 167 184 * Filter the HTML script tag of an enqueued script. 168 185 * … … 185 202 186 203 /** 187 * Localizes a script 204 * Localizes a script, only if the script has already been added 188 205 * 189 * Localizes only if the script has already been added 206 * @param string $handle 207 * @param string $object_name 208 * @param array $l10n 209 * @return bool 190 210 */ 191 211 public function localize( $handle, $object_name, $l10n ) { … … 218 238 } 219 239 240 /** 241 * @param string $handle Name of the item. Should be unique. 242 * @param bool $recursion Internal flag that calling function was called recursively. 243 * @param mixed $group Group level. 244 * @return bool Not already in the group or a lower group 245 */ 220 246 public function set_group( $handle, $recursion, $group = false ) { 221 222 247 if ( $this->registered[$handle]->args === 1 ) 223 248 $grp = 1; … … 231 256 } 232 257 258 /** 259 * @param mixed $handles Item handle and argument (string) or item handles and arguments (array of strings). 260 * @param bool $recursion Internal flag that function is calling itself. 261 * @param mixed $group Group level: (int) level, (false) no groups. 262 * @return bool True on success, false on failure. 263 */ 233 264 public function all_deps( $handles, $recursion = false, $group = false ) { 234 265 $r = parent::all_deps( $handles, $recursion ); … … 246 277 } 247 278 279 /** 280 * @return array 281 */ 248 282 public function do_head_items() { 249 283 $this->do_items(false, 0); … … 251 285 } 252 286 287 /** 288 * @return array 289 */ 253 290 public function do_footer_items() { 254 291 $this->do_items(false, 1); … … 256 293 } 257 294 295 /** 296 * @param string $src 297 * @return bool 298 */ 258 299 public function in_default_dir( $src ) { 259 300 if ( ! $this->default_dirs ) { -
trunk/src/wp-includes/class.wp-styles.php
r31031 r32566 235 235 } 236 236 237 /** 238 * @return array 239 */ 237 240 public function do_footer_items() { // HTML 5 allows styles in the body, grab late enqueued items and output them in the footer. 238 241 $this->do_items(false, 1);
Note: See TracChangeset
for help on using the changeset viewer.