mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Remove wp-admin/sidebar.php. fixes #15164.
git-svn-id: https://develop.svn.wordpress.org/trunk@15857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-6
@@ -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'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user