Changeset 17361 for trunk/wp-admin/edit-tags.php
- Timestamp:
- 01/25/2011 07:20:20 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-tags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r17322 r17361 14 14 15 15 $wp_list_table = _get_list_table('WP_Terms_List_Table'); 16 $pagenum = $wp_list_table->get_pagenum(); 16 17 17 18 $title = $tax->labels->name; … … 149 150 150 151 default: 151 152 152 if ( ! empty($_REQUEST['_wp_http_referer']) ) { 153 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 154 exit; 153 $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ); 154 155 if ( ! empty( $_REQUEST['paged'] ) ) 156 $location = add_query_arg( 'paged', (int) $_REQUEST['paged'] ); 157 158 wp_redirect( $location ); 159 exit; 155 160 } 156 161 157 162 $wp_list_table->prepare_items(); 163 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); 164 165 if ( $pagenum > $total_pages ) { 166 wp_redirect( add_query_arg( 'paged', $total_pages ) ); 167 exit; 168 } 158 169 159 170 wp_enqueue_script('admin-tags');
Note: See TracChangeset
for help on using the changeset viewer.