diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 8480bd0e6f..a676b3705d 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -749,7 +749,7 @@ function inline_edit_row( $type ) {
title="">
- @@ -812,6 +812,9 @@ function inline_save_row( $data ) { // statuses if ( 'private' == $data['keep_private'] ) $data['post_status'] = 'private'; + else + $data['post_status'] = $data['_status']; + if ( empty($data['comment_status']) ) $data['comment_status'] = 'closed'; if ( empty($data['ping_status']) ) @@ -845,7 +848,7 @@ function get_inline_data($post) { - + diff --git a/wp-admin/js/inline-edit.js b/wp-admin/js/inline-edit.js index 389f504b85..f0e6e8ee40 100644 --- a/wp-admin/js/inline-edit.js +++ b/wp-admin/js/inline-edit.js @@ -49,7 +49,7 @@ inlineEdit = { t.revert(old); } - var fields = ['post_title', 'post_name', 'post_author', 'post_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'post_password']; + var fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'post_password']; if ( type == 'page' ) fields.push('post_parent', 'menu_order', 'page_template'); if ( type == 'post' ) fields.push('tags_input'); @@ -79,8 +79,8 @@ inlineEdit = { $('ul.cat-checklist :checkbox').val(cats.split(',')); // handle the post status - var status = $('.post_status', rowData).val(); - if ( status != 'future' ) $('select[name="post_status"] option[value="future"]', editRow).remove(); + var status = $('._status', rowData).val(); + if ( status != 'future' ) $('select[name="_status"] option[value="future"]', editRow).remove(); if ( status == 'private' ) $('input[name="keep_private"]', editRow).attr("checked", "checked"); // remove the current page and children from the parent dropdown