mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Fix the syntax for some status-related documentation introduced in [30155].
* Variables in DocBlocks should be backtick-escaped * Parameter and return types should be as specific as possible * `@param` types and variables should align with each other, but not intentionally with the `@return` description See #30230. git-svn-id: https://develop.svn.wordpress.org/trunk@30284 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1149,8 +1149,7 @@ function wp_ajax_add_meta() {
|
||||
if ( isset($_POST['metakeyselect']) && '#NONE#' == $_POST['metakeyselect'] && empty($_POST['metakeyinput']) )
|
||||
wp_die( 1 );
|
||||
|
||||
// If the post is an autodraft, save the post as a draft and then
|
||||
// attempt to save the meta.
|
||||
// If the post is an autodraft, save the post as a draft and then attempt to save the meta.
|
||||
if ( $post->post_status == 'auto-draft' ) {
|
||||
$save_POST = $_POST; // Backup $_POST
|
||||
$_POST = array(); // Make it empty for edit_post()
|
||||
|
||||
Reference in New Issue
Block a user