Changeset 32655 for trunk/src/wp-admin/includes/screen.php
- Timestamp:
- 05/29/2015 09:16:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/screen.php
r32650 r32655 186 186 * 187 187 * @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen, 188 * or an existing screen object.188 * or an existing screen object. 189 189 */ 190 190 function set_current_screen( $hook_name = '' ) { … … 388 388 * 389 389 * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen. 390 * Defaults to the current $hook_suffix global.390 * Defaults to the current $hook_suffix global. 391 391 * @return WP_Screen Screen object. 392 392 */ 393 393 public static function get( $hook_name = '' ) { 394 395 394 if ( $hook_name instanceof WP_Screen ) { 396 395 return $hook_name; … … 583 582 * 584 583 * @param string $admin The admin to check against (network | user | site). 585 * If empty any of the three admins will result in true. 586 * @return boolean True if the screen is in the indicated admin, false otherwise. 587 * 584 * If empty any of the three admins will result in true. 585 * @return bool True if the screen is in the indicated admin, false otherwise. 588 586 */ 589 587 public function in_admin( $admin = null ) {
Note: See TracChangeset
for help on using the changeset viewer.