From 3507e2b200095af779a68ce61d70cc2791f0543d Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 20 Oct 2010 09:58:21 +0000 Subject: [PATCH] Remove wp-admin/sidebar.php. fixes #15164. git-svn-id: http://svn.automattic.com/wordpress/trunk@15857 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 7 +-- wp-admin/sidebar.php | 128 ------------------------------------------- 2 files changed, 1 insertion(+), 134 deletions(-) delete mode 100644 wp-admin/sidebar.php diff --git a/wp-admin/post.php b/wp-admin/post.php index 548007f7f0..e6f774c562 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -51,12 +51,7 @@ if ( $post_id ) { * @param int $post_id Optional. Post ID. */ function redirect_post($post_id = '') { - if ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) { - if ( isset($_POST['saveasdraft']) ) - $location = 'sidebar.php?a=c'; - elseif ( isset($_POST['publish']) ) - $location = 'sidebar.php?a=b'; - } elseif ( isset($_POST['save']) || isset($_POST['publish']) ) { + if ( isset($_POST['save']) || isset($_POST['publish']) ) { $status = get_post_status( $post_id ); if ( isset( $_POST['publish'] ) ) { diff --git a/wp-admin/sidebar.php b/wp-admin/sidebar.php deleted file mode 100644 index 0f905bf63b..0000000000 --- a/wp-admin/sidebar.php +++ /dev/null @@ -1,128 +0,0 @@ - - - - -<?php bloginfo('name') ?> › <?php _e('Sidebar'); ?> - - - - -
-
- - - - - -

' . __('Post published.') . '

'; -elseif ( 'c' == $_GET['a'] ) - echo '

' . __('Post saved.') . '

'; -?> -

- - -

- -

- - -

- -
- - -

-
- -

- - - - -

- -
- - -