WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/16/2013 06:28:41 PM (7 years ago)
Author:
nacin
Message:

Remove unused variables reset by wp_reset_vars(). Many of these haven't been used since b2. see #21767.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r23416 r23445  
    1010require_once('./admin.php');
    1111
    12 wp_reset_vars(array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer'));
     12wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) );
    1313
    1414$user_id = (int) $user_id;
     
    5555);
    5656
    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 );
    5858
    5959$user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' );
Note: See TracChangeset for help on using the changeset viewer.