Changeset 23554 for trunk/wp-admin/edit-tags.php
- Timestamp:
- 03/01/2013 04:28:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r23416 r23554 48 48 wp_die( __( 'Cheatin’ uh?' ) ); 49 49 50 $post_data = wp_unslash( $_POST ); 51 52 $ret = wp_insert_term( $post_data['tag-name'], $taxonomy, $post_data ); 50 $ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST ); 53 51 $location = 'edit-tags.php?taxonomy=' . $taxonomy; 54 52 if ( 'post' != $post_type ) … … 135 133 136 134 case 'editedtag': 137 138 $post_data = wp_unslash( $_POST ); 139 140 $tag_ID = (int) $post_data['tag_ID']; 135 $tag_ID = (int) $_POST['tag_ID']; 141 136 check_admin_referer( 'update-tag_' . $tag_ID ); 142 137 … … 148 143 wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) ); 149 144 150 $ret = wp_update_term( $tag_ID, $taxonomy, $ post_data);145 $ret = wp_update_term( $tag_ID, $taxonomy, $_POST ); 151 146 152 147 $location = 'edit-tags.php?taxonomy=' . $taxonomy; … … 170 165 default: 171 166 if ( ! empty($_REQUEST['_wp_http_referer']) ) { 172 $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash( $_SERVER['REQUEST_URI']) );167 $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ); 173 168 174 169 if ( ! empty( $_REQUEST['paged'] ) ) … … 270 265 <?php screen_icon(); ?> 271 266 <h2><?php echo esc_html( $title ); 272 if ( ! 273 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash( $_REQUEST['s']) ) ); ?>267 if ( !empty($_REQUEST['s']) ) 268 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( stripslashes($_REQUEST['s']) ) ); ?> 274 269 </h2> 275 270
Note: See TracChangeset
for help on using the changeset viewer.