Changeset 17362 for trunk/wp-admin/edit.php
- Timestamp:
- 01/25/2011 07:30:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r17322 r17362 35 35 } 36 36 unset( $_redirect ); 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 } 37 47 38 48 $doaction = $wp_list_table->current_action(); … … 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 } … … 129 139 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 130 140 exit; 131 }132 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 141 } 142 142 … … 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(); ?>
Note: See TracChangeset
for help on using the changeset viewer.