Changeset 23445
- Timestamp:
- 02/16/2013 06:28:41 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r23416 r23445 78 78 $time_format = get_option('time_format'); 79 79 80 wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'text', 'trackback', 'pingback'));81 82 80 wp_enqueue_script( 'common' ); 83 81 -
trunk/wp-admin/edit-link-form.php
r21311 r23445 127 127 <input type="hidden" name="action" value="save" /> 128 128 <input type="hidden" name="link_id" value="<?php echo (int) $link_id; ?>" /> 129 <input type="hidden" name="order_by" value="<?php echo esc_attr($order_by); ?>" />130 129 <input type="hidden" name="cat_id" value="<?php echo (int) $cat_id ?>" /> 131 130 <?php else: ?> -
trunk/wp-admin/includes/bookmark.php
r23416 r23445 56 56 $link = new stdClass; 57 57 if ( isset( $_GET['linkurl'] ) ) 58 $link->link_url = esc_url( $_GET['linkurl']);58 $link->link_url = esc_url( wp_unslash( $_GET['linkurl'] ) ); 59 59 else 60 60 $link->link_url = ''; 61 61 62 62 if ( isset( $_GET['name'] ) ) 63 $link->link_name = esc_attr( $_GET['name']);63 $link->link_name = esc_attr( wp_unslash( $_GET['name'] ) ); 64 64 else 65 65 $link->link_name = ''; -
trunk/wp-admin/includes/class-wp-links-list-table.php
r21944 r23445 24 24 global $cat_id, $s, $orderby, $order; 25 25 26 wp_reset_vars( array( 'action', 'cat_id', 'link url', 'name', 'image', 'description', 'visible', 'target', 'category', 'link_id', 'submit', 'orderby', 'order', 'links_show_cat_id', 'rating', 'rel', 'notes', 'linkcheck[]', 's' ) );26 wp_reset_vars( array( 'action', 'cat_id', 'link_id', 'orderby', 'order', 's' ) ); 27 27 28 28 $args = array( 'hide_invisible' => 0, 'hide_empty' => 0 ); -
trunk/wp-admin/link-add.php
r20433 r23445 16 16 $parent_file = 'link-manager.php'; 17 17 18 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', 19 'description', 'visible', 'target', 'category', 'link_id', 20 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 21 'notes', 'linkcheck[]')); 18 wp_reset_vars( array('action', 'cat_id', 'link_id' ) ); 22 19 23 20 wp_enqueue_script('link'); -
trunk/wp-admin/link.php
r22855 r23445 13 13 require_once ('admin.php'); 14 14 15 wp_reset_vars( array('action', 'cat_id', 'linkurl', 'name', 'image', 'description', 'visible', 'target', 'category', 'link_id', 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 'notes', 'linkcheck[]'));15 wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) ); 16 16 17 17 if ( ! current_user_can('manage_links') ) -
trunk/wp-admin/options-head.php
r19712 r23445 3 3 * WordPress Options Header. 4 4 * 5 * Resets variables: 'action', 'standalone', and 'option_group_id'. Displays 6 * updated message, if updated variable is part of the URL query. 5 * Displays updated message, if updated variable is part of the URL query. 7 6 * 8 7 * @package WordPress … … 10 9 */ 11 10 12 wp_reset_vars( array('action', 'standalone', 'option_group_id'));11 wp_reset_vars( array( 'action' ) ); 13 12 14 13 if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) { -
trunk/wp-admin/post.php
r22725 r23445 15 15 $submenu_file = 'edit.php'; 16 16 17 wp_reset_vars( array('action', 'safe_mode', 'withcomments', 'posts', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder'));17 wp_reset_vars( array( 'action' ) ); 18 18 19 19 if ( isset( $_GET['post'] ) ) -
trunk/wp-admin/user-edit.php
r23416 r23445 10 10 require_once('./admin.php'); 11 11 12 wp_reset_vars( array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer'));12 wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) ); 13 13 14 14 $user_id = (int) $user_id; … … 55 55 ); 56 56 57 $wp_http_referer = remove_query_arg(array('update', 'delete_count'), wp_unslash( $wp_http_referer ));57 $wp_http_referer = remove_query_arg(array('update', 'delete_count'), $wp_http_referer ); 58 58 59 59 $user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' );
Note: See TracChangeset
for help on using the changeset viewer.