WordPress.org

Make WordPress Core

Changeset 39938


Ignore:
Timestamp:
01/21/2017 02:20:38 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Preserve author filter in list table after entering a page number in paging input.

Props sagarprajapati.
Fixes #39523.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit.php

    r38983 r39938  
    351351<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" />
    352352<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />
     353
     354<?php if ( ! empty( $_REQUEST['author'] ) ) { ?>
     355<input type="hidden" name="author" value="<?php echo esc_attr( $_REQUEST['author'] ); ?>" />
     356<?php } ?>
     357
    353358<?php if ( ! empty( $_REQUEST['show_sticky'] ) ) { ?>
    354359<input type="hidden" name="show_sticky" value="1" />
Note: See TracChangeset for help on using the changeset viewer.