Changeset 36308 for trunk/src/wp-admin/edit-tags.php
- Timestamp:
- 01/15/2016 08:26:06 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tags.php
r36302 r36308 151 151 152 152 case 'edit': 153 $title = $tax->labels->edit_item;154 155 153 if ( ! isset( $_REQUEST['tag_ID'] ) ) { 156 154 break; 157 155 } 158 156 159 $t ag_ID= (int) $_REQUEST['tag_ID'];160 161 $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' ); 162 if ( ! $t ag )157 $term_id = (int) $_REQUEST['tag_ID']; 158 $term = get_term( $term_id ); 159 160 if ( ! $term instanceof WP_Term ) { 163 161 wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) ); 164 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 165 include( ABSPATH . 'wp-admin/edit-tag-form.php' ); 166 include( ABSPATH . 'wp-admin/admin-footer.php' ); 167 162 } 163 164 wp_redirect( esc_url_raw( get_edit_term_link( $term_id, $taxonomy, $post_type ) ) ); 168 165 exit; 169 166
Note: See TracChangeset
for help on using the changeset viewer.