Ticket #16355: 16355.2.diff
| File 16355.2.diff, 1.6 KB (added by , 15 years ago) |
|---|
-
wp-admin/edit.php
35 35 } 36 36 unset( $_redirect ); 37 37 38 if ( 'post' != $post_type ) { 39 $parent_file = "edit.php?post_type=$post_type"; 40 $submenu_file = "edit.php?post_type=$post_type"; 41 $post_new_file = "post-new.php?post_type=$post_type"; 42 } else { 43 $parent_file = 'edit.php'; 44 $submenu_file = 'edit.php'; 45 $post_new_file = 'post-new.php'; 46 } 47 38 48 $doaction = $wp_list_table->current_action(); 39 49 40 50 if ( $doaction ) { … … 59 69 } 60 70 61 71 if ( !isset( $post_ids ) ) { 62 wp_redirect( admin_url("edit.php?post_type=$post_type"));72 wp_redirect( $sendback ); 63 73 exit; 64 74 } 65 75 … … 130 140 exit; 131 141 } 132 142 133 if ( 'post' != $post_type ) {134 $parent_file = "edit.php?post_type=$post_type";135 $submenu_file = "edit.php?post_type=$post_type";136 $post_new_file = "post-new.php?post_type=$post_type";137 } else {138 $parent_file = 'edit.php';139 $submenu_file = 'edit.php';140 $post_new_file = 'post-new.php';141 }142 143 143 $wp_list_table->prepare_items(); 144 144 145 145 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); … … 246 246 247 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 248 <input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" /> 249 <?php if ( ! empty( $_REQUEST['show_sticky'] ) ) { ?> 250 <input type="hidden" name="show_sticky" value="1" /> 251 <?php } ?> 249 252 250 253 <?php $wp_list_table->display(); ?> 251 254