mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Some fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@1273 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+3
-3
@@ -61,7 +61,7 @@ case 'post':
|
||||
}
|
||||
}
|
||||
$post_status = $_POST['post_status'];
|
||||
if (empty($post_status)) $post_status = get_settings('default_post_status');
|
||||
if (empty($post_status)) $post_status = 'draft';
|
||||
$comment_status = $_POST['comment_status'];
|
||||
if (empty($comment_status)) $comment_status = get_settings('default_comment_status');
|
||||
$ping_status = $_POST['ping_status'];
|
||||
@@ -133,7 +133,7 @@ case 'post':
|
||||
} else {
|
||||
$location = 'post.php';
|
||||
}
|
||||
if ('' != $_POST['advanced'])
|
||||
if ( '' != $_POST['advanced'] || isset($_POST['save']) )
|
||||
$location = "post.php?action=edit&post=$post_ID";
|
||||
|
||||
header("Location: $location"); // Send user on their way while we keep working
|
||||
@@ -724,7 +724,7 @@ default:
|
||||
<?php
|
||||
}
|
||||
//set defaults
|
||||
$post_status = get_settings('default_post_status');
|
||||
$post_status = 'draft';
|
||||
$comment_status = get_settings('default_comment_status');
|
||||
$ping_status = get_settings('default_ping_status');
|
||||
$post_pingback = get_settings('default_pingback_flag');
|
||||
|
||||
Reference in New Issue
Block a user