Skip to content

Commit 2a60fe2

Browse files
Quick/Bulk Edit: Check if post status is set in wp_ajax_inline_save().
This aims to avoid a PHP warning if the status value is missing in the request. Follow-up to [8951], [9083]. Props bor0, jorbin, SergeyBiryukov. Fixes #63622. git-svn-id: https://develop.svn.wordpress.org/trunk@60639 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2425ce4 commit 2a60fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/ajax-actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2117,7 +2117,7 @@ function wp_ajax_inline_save() {
21172117
if ( isset( $data['keep_private'] ) && 'private' === $data['keep_private'] ) {
21182118
$data['visibility'] = 'private';
21192119
$data['post_status'] = 'private';
2120-
} else {
2120+
} elseif ( isset( $data['_status'] ) ) {
21212121
$data['post_status'] = $data['_status'];
21222122
}
21232123

0 commit comments

Comments
 (0)