mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Move from quickpress_post_ID to post_ID. fixes #19095.
git-svn-id: https://develop.svn.wordpress.org/trunk@19093 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-5
@@ -20,7 +20,7 @@ if ( isset( $_GET['post'] ) )
|
||||
$post_id = $post_ID = (int) $_GET['post'];
|
||||
elseif ( isset( $_POST['post_ID'] ) )
|
||||
$post_id = $post_ID = (int) $_POST['post_ID'];
|
||||
else
|
||||
else
|
||||
$post_id = $post_ID = 0;
|
||||
|
||||
$post = $post_type = $post_type_object = null;
|
||||
@@ -102,10 +102,6 @@ case 'post-quickpress-save':
|
||||
if ( 'post-quickpress-publish' == $action || 'post-quickpress-save' == $action ) {
|
||||
$_POST['comment_status'] = get_option('default_comment_status');
|
||||
$_POST['ping_status'] = get_option('default_ping_status');
|
||||
}
|
||||
|
||||
if ( !empty( $_POST['quickpress_post_ID'] ) ) {
|
||||
$_POST['post_ID'] = (int) $_POST['quickpress_post_ID'];
|
||||
$post_id = edit_post();
|
||||
} else {
|
||||
$post_id = 'postajaxpost' == $action ? edit_post() : write_post();
|
||||
|
||||
Reference in New Issue
Block a user