Changeset 53281 for trunk/src/wp-includes/class.wp-dependencies.php
- Timestamp:
- 04/26/2022 02:26:38 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-dependencies.php
r52339 r53281 432 432 433 433 /** 434 * Query list for an item.434 * Query the list for an item. 435 435 * 436 436 * @since 2.1.0 … … 438 438 * 439 439 * @param string $handle Name of the item. Should be unique. 440 * @param string $ list Optional. Property name of list array. Default 'registered'.440 * @param string $status Optional. Status of the item to query. Default 'registered'. 441 441 * @return bool|_WP_Dependency Found, or object Item data. 442 442 */ 443 public function query( $handle, $ list= 'registered' ) {444 switch ( $ list) {443 public function query( $handle, $status = 'registered' ) { 444 switch ( $status ) { 445 445 case 'registered': 446 446 case 'scripts': // Back compat. … … 451 451 452 452 case 'enqueued': 453 case 'queue': 453 case 'queue': // Back compat. 454 454 if ( in_array( $handle, $this->queue, true ) ) { 455 455 return true; … … 465 465 return in_array( $handle, $this->done, true ); 466 466 } 467 467 468 return false; 468 469 }
Note: See TracChangeset
for help on using the changeset viewer.