Pinking shears

git-svn-id: https://develop.svn.wordpress.org/trunk@19054 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-10-24 19:13:23 +00:00
parent 5fecc93721
commit fd10e500e4
26 changed files with 59 additions and 59 deletions

View File

@@ -333,7 +333,7 @@ final class WP_Screen {
* @access private
*/
private $_help_tabs = array();
/**
* The help sidebar data associated with screen, if any.
*
@@ -395,10 +395,10 @@ final class WP_Screen {
* @return WP_Screen Screen object.
*/
public function get( $hook_name = '' ) {
if ( is_a( $hook_name, 'WP_Screen' ) )
return $hook_name;
$action = $post_type = $taxonomy = '';
if ( $hook_name ) {
@@ -425,12 +425,12 @@ final class WP_Screen {
$action = 'add';
$id = str_replace( array( '-new', '-add' ), '', $id );
}
if ( 'index' == $id )
$id = 'dashboard';
$base = $id;
// If this is the current screen, see if we can be more accurate for post types and taxonomies.
if ( ! $hook_name ) {
switch ( $base ) {
@@ -466,7 +466,7 @@ final class WP_Screen {
break;
}
}
switch ( $base ) {
case 'post' :
if ( ! $post_type )
@@ -484,7 +484,7 @@ final class WP_Screen {
$id = 'edit-' . $taxonomy;
break;
}
if ( is_network_admin() ) {
$id .= '-network';
$base .= '-network';
@@ -492,7 +492,7 @@ final class WP_Screen {
$id .= '-user';
$base .= '-user';
}
if ( isset( self::$_registry[ $id ] ) )
return self::$_registry[ $id ];
@@ -509,7 +509,7 @@ final class WP_Screen {
return $screen;
}
/**
* Makes the screen object the current screen.
*
@@ -543,7 +543,7 @@ final class WP_Screen {
* @param string $help Help text.
*/
static function add_old_compat_help( $screen, $help ) {
self::$_old_compat_help[ $screen->id ] = $help;
self::$_old_compat_help[ $screen->id ] = $help;
}
/**