Changeset 29782 for trunk/src/wp-admin/edit-tags.php
- Timestamp:
- 09/29/2014 04:53:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tags.php
r28291 r29782 39 39 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) ); 40 40 41 $location = false; 42 41 43 switch ( $wp_list_table->current_action() ) { 42 44 … … 62 64 else 63 65 $location = add_query_arg( 'message', 4, $location ); 64 wp_redirect( $location ); 65 exit;66 67 break; 66 68 67 69 case 'delete': … … 74 76 } 75 77 76 if ( !isset( $_REQUEST['tag_ID'] ) ) { 77 wp_redirect( $location ); 78 exit; 78 if ( ! isset( $_REQUEST['tag_ID'] ) ) { 79 break; 79 80 } 80 81 … … 88 89 89 90 $location = add_query_arg( 'message', 2, $location ); 90 wp_redirect( $location ); 91 exit;91 92 break; 92 93 93 94 case 'bulk-delete': … … 111 112 112 113 $location = add_query_arg( 'message', 6, $location ); 113 wp_redirect( $location ); 114 exit;114 115 break; 115 116 116 117 case 'edit': … … 124 125 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 125 126 include( ABSPATH . 'wp-admin/edit-tag-form.php' ); 126 127 break; 127 include( ABSPATH . 'wp-admin/admin-footer.php' ); 128 129 exit; 128 130 129 131 case 'editedtag': … … 153 155 else 154 156 $location = add_query_arg( 'message', 5, $location ); 155 156 wp_redirect( $location ); 157 exit; 158 159 default: 160 if ( ! empty($_REQUEST['_wp_http_referer']) ) { 157 break; 158 } 159 160 if ( ! $location && ! empty( $_REQUEST['_wp_http_referer'] ) ) { 161 161 $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) ); 162 163 if ( ! empty( $_REQUEST['paged'] ) ) 164 $location = add_query_arg( 'paged', (int) $_REQUEST['paged'] ); 165 162 } 163 164 if ( $location ) { 165 if ( ! empty( $_REQUEST['paged'] ) ) { 166 $location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location ); 167 } 166 168 wp_redirect( $location ); 167 169 exit; … … 584 586 try{document.forms.addtag['tag-name'].focus();}catch(e){} 585 587 </script> 586 <?php $wp_list_table->inline_edit(); ?>587 588 588 <?php 589 break; 590 } 589 $wp_list_table->inline_edit(); 591 590 592 591 include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset
for help on using the changeset viewer.