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