Fix warning in media.php. Show sidemenu. Props andy. fixes #6206
git-svn-id: http://svn.automattic.com/wordpress/trunk@7346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8e7f26b498
commit
577f7f557a
|
@ -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