Changeset 23658 for trunk/wp-admin/includes/screen.php
- Timestamp:
- 03/09/2013 03:52:27 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/screen.php
r23503 r23658 320 320 /** 321 321 * The help tab data associated with the screen, if any. 322 323 324 325 326 322 * 323 * @since 3.3.0 324 * @var array 325 * @access private 326 */ 327 327 private $_help_tabs = array(); 328 328 329 329 /** 330 330 * The help sidebar data associated with screen, if any. 331 331 * … … 333 333 * @var string 334 334 * @access private 335 335 */ 336 336 private $_help_sidebar = ''; 337 337 … … 377 377 private $_screen_settings; 378 378 379 379 /** 380 380 * Fetches a screen object. 381 382 381 * 382 * @since 3.3.0 383 383 * @access public 384 384 * 385 385 * @param string $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen. 386 386 * Defaults to the current $hook_suffix global. 387 387 * @return WP_Screen Screen object. 388 388 */ 389 389 public static function get( $hook_name = '' ) { 390 390 … … 428 428 $maybe = substr( $id, 5 ); 429 429 if ( taxonomy_exists( $maybe ) ) { 430 430 $id = 'edit-tags'; 431 431 $taxonomy = $maybe; 432 432 } elseif ( post_type_exists( $maybe ) ) { … … 434 434 $post_type = $maybe; 435 435 } 436 436 } 437 437 438 438 if ( ! $in_admin ) … … 481 481 break; 482 482 } 483 483 } 484 484 485 485 switch ( $base ) { … … 514 514 $id .= '-user'; 515 515 $base .= '-user'; 516 516 } 517 517 518 518 if ( isset( self::$_registry[ $id ] ) ) { … … 536 536 537 537 return $screen; 538 538 } 539 539 540 540 /**
Note: See TracChangeset
for help on using the changeset viewer.