Ticket #16341: 16341.4.patch
File 16341.4.patch, 12.2 KB (added by , 13 years ago) |
---|
-
wp-admin/edit-comments.php
222 222 223 223 <?php $wp_list_table->search_box( __( 'Search Comments' ), 'comment' ); ?> 224 224 225 <?php if ( $post_id ) : ?> 226 <input type="hidden" name="p" value="<?php echo esc_attr( intval( $post_id ) ); ?>" /> 227 <?php endif; ?> 228 <input type="hidden" name="comment_status" value="<?php echo esc_attr($comment_status); ?>" /> 229 <input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr(current_time('mysql', 1)); ?>" /> 225 <?php $wp_list_table->hidden_fields(); ?> 230 226 231 <input type="hidden" name="_total" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg('total_items') ); ?>" />232 <input type="hidden" name="_per_page" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg('per_page') ); ?>" />233 <input type="hidden" name="_page" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg('page') ); ?>" />234 235 <?php if ( isset($_REQUEST['paged']) ) { ?>236 <input type="hidden" name="paged" value="<?php echo esc_attr( absint( $_REQUEST['paged'] ) ); ?>" />237 <?php } ?>238 239 227 <?php $wp_list_table->display(); ?> 240 228 </form> 241 229 </div> -
wp-admin/edit-tags.php
238 238 <div id="ajax-response"></div> 239 239 240 240 <form class="search-form" action="" method="get"> 241 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />242 <input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />243 241 244 242 <?php $wp_list_table->search_box( $tax->labels->search_items, 'tag' ); ?> 245 243 244 <?php $wp_list_table->hidden_fields(); ?> 245 246 246 </form> 247 247 <br class="clear" /> 248 248 -
wp-admin/edit.php
244 244 245 245 <?php $wp_list_table->search_box( $post_type_object->labels->search_items, 'post' ); ?> 246 246 247 <input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" /> 248 <input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" /> 247 <?php $wp_list_table->hidden_fields(); ?> 249 248 250 249 <?php $wp_list_table->display(); ?> 251 250 -
wp-admin/includes/class-wp-comments-list-table.php
265 265 ); 266 266 } 267 267 268 function hidden_fields() { 269 global $post_id, $comment_status; 270 ?> 271 <?php if ( $post_id ) : ?> 272 <input type="hidden" name="p" value="<?php echo esc_attr( intval( $post_id ) ); ?>" /> 273 <?php endif; ?> 274 <input type="hidden" name="comment_status" value="<?php echo esc_attr($comment_status); ?>" /> 275 <input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr(current_time('mysql', 1)); ?>" /> 276 277 <input type="hidden" name="_total" value="<?php echo esc_attr( $this->get_pagination_arg('total_items') ); ?>" /> 278 <input type="hidden" name="_per_page" value="<?php echo esc_attr( $this->get_pagination_arg('per_page') ); ?>" /> 279 <input type="hidden" name="_page" value="<?php echo esc_attr( $this->get_pagination_arg('page') ); ?>" /> 280 281 <?php if ( isset($_REQUEST['paged']) ) : ?> 282 <input type="hidden" name="paged" value="<?php echo esc_attr( absint( $_REQUEST['paged'] ) ); ?>" /> 283 <?php endif; ?> 284 <?php 285 parent::hidden_fields(); 286 } 287 268 288 function display() { 269 289 extract( $this->_args ); 270 290 -
wp-admin/includes/class-wp-list-table.php
686 686 } 687 687 688 688 /** 689 * Add hidden fields to keep sorting after searching 690 * 691 * @since 3.1.0 692 * @access public 693 */ 694 function hidden_fields() { 695 ?> 696 <?php if ( ! empty($_REQUEST['orderby']) ) : ?> 697 <input type="hidden" name="orderby" value="<?php echo esc_attr($_REQUEST['orderby']); ?>" /> 698 <?php endif; ?> 699 <?php if ( ! empty($_REQUEST['order']) ) : ?> 700 <input type="hidden" name="order" value="<?php echo esc_attr($_REQUEST['order']); ?>" /> 701 <?php endif; ?> 702 <?php 703 } 704 705 /** 689 706 * Display the table 690 707 * 691 708 * @since 3.1.0 -
wp-admin/includes/class-wp-ms-sites-list-table.php
165 165 ); 166 166 } 167 167 168 function hidden_fields() { 169 ?> 170 <input type="hidden" name="action" value="blogs" /> 171 <?php 172 parent::hidden_fields(); 173 } 174 168 175 function display_rows() { 169 176 global $current_site, $mode; 170 177 -
wp-admin/includes/class-wp-ms-themes-list-table.php
254 254 return parent::current_action(); 255 255 } 256 256 257 function hidden_fields() { 258 global $id; 259 if ( ! empty($id) ) : 260 ?> 261 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 262 <?php 263 endif; 264 parent::hidden_fields(); 265 } 266 257 267 function display_rows() { 258 268 foreach ( $this->items as $key => $theme ) 259 269 $this->single_row( $key, $theme ); -
wp-admin/includes/class-wp-plugins-list-table.php
296 296 return parent::current_action(); 297 297 } 298 298 299 function hidden_fields() { 300 global $status, $page; 301 ?> 302 <input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" /> 303 <input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" /> 304 <?php 305 parent::hidden_fields(); 306 } 307 299 308 function display_rows() { 300 309 global $status; 301 310 -
wp-admin/includes/class-wp-posts-list-table.php
304 304 ); 305 305 } 306 306 307 function hidden_fields() { 308 global $post_type; 309 ?> 310 <input type="hidden" name="post_status" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" /> 311 <input type="hidden" name="post_type" value="<?php echo $post_type; ?>" /> 312 <?php 313 parent::hidden_fields(); 314 } 315 307 316 function display_rows( $posts = array() ) { 308 317 global $wp_query, $post_type_object, $per_page; 309 318 -
wp-admin/includes/class-wp-terms-list-table.php
123 123 ); 124 124 } 125 125 126 function hidden_fields() { 127 global $taxonomy, $post_type; 128 ?> 129 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" /> 130 <input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" /> 131 <?php 132 parent::hidden_fields(); 133 } 134 126 135 function display_rows_or_placeholder() { 127 136 global $taxonomy; 128 137 -
wp-admin/includes/class-wp-users-list-table.php
180 180 return $c; 181 181 } 182 182 183 function hidden_fields() { 184 global $id; 185 if ( ! empty($id) ) : 186 ?> 187 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 188 <?php 189 endif; 190 parent::hidden_fields(); 191 } 192 183 193 function display_rows() { 184 194 // Query the post counts for this page 185 195 if ( ! $this->is_site_users ) -
wp-admin/link-manager.php
78 78 79 79 <?php $wp_list_table->search_box( __( 'Search Links' ), 'link' ); ?> 80 80 81 <?php $wp_list_table->hidden_fields(); ?> 82 81 83 <?php $wp_list_table->display(); ?> 82 84 83 85 <div id="ajax-response"></div> -
wp-admin/network/site-themes.php
162 162 163 163 <form method="get" action=""> 164 164 <?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?> 165 < input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />165 <?php $wp_list_table->hidden_fields(); ?> 166 166 </form> 167 167 168 168 <?php $wp_list_table->views(); ?> -
wp-admin/network/site-users.php
218 218 219 219 <form class="search-form" action="" method="get"> 220 220 <?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?> 221 < input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />221 <?php $wp_list_table->hidden_fields(); ?> 222 222 </form> 223 223 224 224 <?php $wp_list_table->views(); ?> -
wp-admin/network/sites.php
112 112 113 113 <form action="" method="get" id="ms-search"> 114 114 <?php $wp_list_table->search_box( __( 'Search Sites' ), 'site' ); ?> 115 < input type="hidden" name="action" value="blogs" />115 <?php $wp_list_table->hidden_fields(); ?> 116 116 </form> 117 117 118 118 <form id="form-site-list" action="edit.php?action=allblogs" method="post"> -
wp-admin/network/themes.php
224 224 225 225 <form method="get" action=""> 226 226 <?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?> 227 <?php $wp_list_table->hidden_fields(); ?> 227 228 </form> 228 229 229 230 <?php $wp_list_table->views(); ?> -
wp-admin/network/users.php
80 80 81 81 <form action="" method="get" class="search-form"> 82 82 <?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?> 83 <?php $wp_list_table->hidden_fields(); ?> 83 84 </form> 84 85 85 86 <form id="form-user-list" action='edit.php?action=allusers' method='post'> -
wp-admin/plugins.php
404 404 405 405 <?php $wp_list_table->search_box( __( 'Search Plugins' ), 'plugin' ); ?> 406 406 407 <input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" /> 408 <input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" /> 407 <?php $wp_list_table->hidden_fields(); ?> 409 408 410 409 <?php 411 410 if ( 'mustuse' == $status ) -
wp-admin/upload.php
215 215 216 216 <?php $wp_list_table->search_box( __( 'Search Media' ), 'media' ); ?> 217 217 218 <?php $wp_list_table->hidden_fields(); ?> 219 218 220 <?php $wp_list_table->display(); ?> 219 221 220 222 <div id="ajax-response"></div> -
wp-admin/users.php
362 362 363 363 <?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?> 364 364 365 <?php $wp_list_table->hidden_fields(); ?> 366 365 367 <?php $wp_list_table->display(); ?> 366 368 </form> 367 369