Fix warning in media.php. Show sidemenu. Props andy. fixes #6206
git-svn-id: https://develop.svn.wordpress.org/trunk@7346 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2c6b7b2b1f
commit
837bf2bd84
@ -8,7 +8,7 @@ div#media-upload-header {
|
||||
height: 2.5em;
|
||||
}
|
||||
|
||||
ul#sidemenu {
|
||||
body#media-upload ul#sidemenu {
|
||||
font-weight: normal;
|
||||
margin: 0 5px;
|
||||
position: absolute;
|
||||
|
@ -8,8 +8,6 @@ $submenu_file = 'upload.php';
|
||||
wp_reset_vars(array('action'));
|
||||
|
||||
switch( $action ) :
|
||||
case 'upload' :
|
||||
case 'delete' : break; // stubs
|
||||
case 'editattachment' :
|
||||
$errors = media_upload_form_handler();
|
||||
if ( empty($errors) ) {
|
||||
@ -78,10 +76,13 @@ case 'edit' :
|
||||
|
||||
require( 'admin-footer.php' );
|
||||
|
||||
break;
|
||||
exit;
|
||||
|
||||
default:
|
||||
wp_redirect( 'upload.php' );
|
||||
exit;
|
||||
|
||||
endswitch;
|
||||
|
||||
wp_redirect( 'upload.php' );
|
||||
exit;
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user