WordPress.org

Make WordPress Core

Ticket #16341: 16341.6.patch

File 16341.6.patch, 5.7 KB (added by SergeyBiryukov, 5 years ago)
  • wp-admin/edit-comments.php

     
    236236        <input type="hidden" name="paged" value="<?php echo esc_attr( absint( $_REQUEST['paged'] ) ); ?>" /> 
    237237<?php } ?> 
    238238 
     239<?php $wp_list_table->hidden_order_fields(); ?> 
     240 
    239241<?php $wp_list_table->display(); ?> 
    240242</form> 
    241243</div> 
  • wp-admin/edit-tags.php

     
    243243 
    244244<?php $wp_list_table->search_box( $tax->labels->search_items, 'tag' ); ?> 
    245245 
     246<?php $wp_list_table->hidden_order_fields(); ?> 
    246247</form> 
    247248<br class="clear" /> 
    248249 
  • wp-admin/edit.php

     
    247247<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" /> 
    248248<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" /> 
    249249 
     250<?php $wp_list_table->hidden_order_fields(); ?> 
     251 
    250252<?php $wp_list_table->display(); ?> 
    251253 
    252254</form> 
  • wp-admin/includes/class-wp-list-table.php

     
    686686        } 
    687687 
    688688        /** 
     689         * Add hidden fields to keep sorting after searching 
     690         * 
     691         * @since 3.1.0 
     692         * @access public 
     693         */ 
     694        function hidden_order_fields() { 
     695                if ( ! empty($_REQUEST['orderby']) ) 
     696                        echo '<input type="hidden" name="orderby" value="' . esc_attr($_REQUEST['orderby']) . '" />'; 
     697                if ( ! empty($_REQUEST['order']) )  
     698                        echo '<input type="hidden" name="order" value="' . esc_attr($_REQUEST['order']) . '" />'; 
     699        } 
     700 
     701        /** 
    689702         * Display the table 
    690703         * 
    691704         * @since 3.1.0 
  • wp-admin/link-manager.php

     
    7878 
    7979<?php $wp_list_table->search_box( __( 'Search Links' ), 'link' ); ?> 
    8080 
     81<?php $wp_list_table->hidden_order_fields(); ?> 
     82 
    8183<?php $wp_list_table->display(); ?> 
    8284 
    8385<div id="ajax-response"></div> 
  • wp-admin/network/site-themes.php

     
    163163<form method="get" action=""> 
    164164<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?> 
    165165<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 
     166<?php $wp_list_table->hidden_order_fields(); ?> 
    166167</form> 
    167168 
    168169<?php $wp_list_table->views(); ?> 
  • wp-admin/network/site-users.php

     
    219219<form class="search-form" action="" method="get"> 
    220220<?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?> 
    221221<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 
     222<?php $wp_list_table->hidden_order_fields(); ?> 
    222223</form> 
    223224 
    224225<?php $wp_list_table->views(); ?> 
  • wp-admin/network/sites.php

     
    113113<form action="" method="get" id="ms-search"> 
    114114<?php $wp_list_table->search_box( __( 'Search Sites' ), 'site' ); ?> 
    115115<input type="hidden" name="action" value="blogs" /> 
     116<?php $wp_list_table->hidden_order_fields(); ?> 
    116117</form> 
    117118 
    118119<form id="form-site-list" action="edit.php?action=allblogs" method="post"> 
  • wp-admin/network/themes.php

     
    224224 
    225225<form method="get" action=""> 
    226226<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?> 
     227<?php $wp_list_table->hidden_order_fields(); ?> 
    227228</form> 
    228229 
    229230<?php $wp_list_table->views(); ?> 
  • wp-admin/network/users.php

     
    8080 
    8181        <form action="" method="get" class="search-form"> 
    8282                <?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?> 
     83                <?php $wp_list_table->hidden_order_fields(); ?> 
    8384        </form> 
    8485 
    8586        <form id="form-user-list" action='edit.php?action=allusers' method='post'> 
  • wp-admin/upload.php

     
    215215 
    216216<?php $wp_list_table->search_box( __( 'Search Media' ), 'media' ); ?> 
    217217 
     218<?php $wp_list_table->hidden_order_fields(); ?> 
     219 
    218220<?php $wp_list_table->display(); ?> 
    219221 
    220222<div id="ajax-response"></div> 
  • wp-admin/users.php

     
    362362 
    363363<?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?> 
    364364 
     365<?php $wp_list_table->hidden_order_fields(); ?> 
     366 
    365367<?php $wp_list_table->display(); ?> 
    366368</form> 
    367369