mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Improve QE data for Draft, Pending and Scheduled posts screens, see #10478
git-svn-id: http://svn.automattic.com/wordpress/trunk@11743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bdbaca9056
commit
f48bea5721
@ -176,9 +176,7 @@ endif;
|
||||
<input type="submit" value="<?php esc_attr_e( 'Search Pages' ); ?>" class="button" />
|
||||
</p>
|
||||
|
||||
<?php if ( isset($_GET['post_status'] ) ) : ?>
|
||||
<input type="hidden" name="post_status" value="<?php echo esc_attr($_GET['post_status']) ?>" />
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_GET['post_status']) ? esc_attr($_GET['post_status']) : 'all'; ?>" />
|
||||
|
||||
<?php if ($posts) { ?>
|
||||
|
||||
|
@ -169,9 +169,7 @@ endif;
|
||||
<input type="submit" value="<?php esc_attr_e( 'Search Posts' ); ?>" class="button" />
|
||||
</p>
|
||||
|
||||
<?php if ( isset($_GET['post_status'] ) ) : ?>
|
||||
<input type="hidden" name="post_status" value="<?php echo esc_attr($_GET['post_status']) ?>" />
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_GET['post_status']) ? esc_attr($_GET['post_status']) : 'all'; ?>" />
|
||||
<input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
|
||||
|
||||
<?php if ( have_posts() ) { ?>
|
||||
|
@ -753,13 +753,7 @@ function wp_manage_posts_columns() {
|
||||
$posts_columns['author'] = __('Author');
|
||||
$posts_columns['categories'] = __('Categories');
|
||||
$posts_columns['tags'] = __('Tags');
|
||||
|
||||
$post_status = 'all';
|
||||
if ( isset($_GET['post_status']) )
|
||||
$post_status = $_GET['post_status'];
|
||||
elseif ( isset($_POST['_status']) )
|
||||
$post_status = $_POST['_status'];
|
||||
|
||||
$post_status = !empty($_REQUEST['post_status']) ? $_REQUEST['post_status'] : 'all';
|
||||
if ( !in_array( $post_status, array('pending', 'draft', 'future') ) )
|
||||
$posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
|
||||
$posts_columns['date'] = __('Date');
|
||||
@ -807,13 +801,7 @@ function wp_manage_pages_columns() {
|
||||
$posts_columns['cb'] = '<input type="checkbox" />';
|
||||
$posts_columns['title'] = __('Title');
|
||||
$posts_columns['author'] = __('Author');
|
||||
|
||||
$post_status = 'all';
|
||||
if ( isset($_GET['post_status']) )
|
||||
$post_status = $_GET['post_status'];
|
||||
elseif ( isset($_POST['_status']) )
|
||||
$post_status = $_POST['_status'];
|
||||
|
||||
$post_status = !empty($_REQUEST['post_status']) ? $_REQUEST['post_status'] : 'all';
|
||||
if ( !in_array( $post_status, array('pending', 'draft', 'future') ) )
|
||||
$posts_columns['comments'] = '<div class="vers"><img alt="" src="images/comment-grey-bubble.png" /></div>';
|
||||
$posts_columns['date'] = __('Date');
|
||||
|
@ -181,7 +181,7 @@ inlineEditPost = {
|
||||
},
|
||||
|
||||
save : function(id) {
|
||||
var params, fields;
|
||||
var params, fields, page = $('.post_status_page').val() || '';
|
||||
|
||||
if( typeof(id) == 'object' )
|
||||
id = this.getId(id);
|
||||
@ -192,7 +192,8 @@ inlineEditPost = {
|
||||
action: 'inline-save',
|
||||
post_type: this.type,
|
||||
post_ID: id,
|
||||
edit_date: 'true'
|
||||
edit_date: 'true',
|
||||
post_status: page
|
||||
};
|
||||
|
||||
fields = $('#edit-'+id+' :input').serialize();
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user