Ticket #18718: 18718.3.patch
File 18718.3.patch, 1006 bytes (added by , 12 years ago) |
---|
-
wp-admin/edit-tags.php
113 113 case 'edit': 114 114 $title = $tax->labels->edit_item; 115 115 116 require_once ( 'admin-header.php' );117 116 $tag_ID = (int) $_REQUEST['tag_ID']; 118 117 119 118 $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' ); 119 if ( !$tag ) 120 wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) ); 121 require_once ( 'admin-header.php' ); 120 122 include( './edit-tag-form.php' ); 121 123 122 124 break; … … 128 130 if ( !current_user_can( $tax->cap->edit_terms ) ) 129 131 wp_die( __( 'Cheatin’ uh?' ) ); 130 132 133 $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' ); 134 if ( !$tag ) 135 wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) ); 136 131 137 $ret = wp_update_term( $tag_ID, $taxonomy, $_POST ); 132 138 133 139 $location = 'edit-tags.php?taxonomy=' . $taxonomy;