Remove unused variables reset by wp_reset_vars(). Many of these haven't been used since b2. see #21767.
git-svn-id: http://core.svn.wordpress.org/trunk@23445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -55,12 +55,12 @@ function edit_link( $link_id = 0 ) {
|
||||
function get_default_link_to_edit() {
|
||||
$link = new stdClass;
|
||||
if ( isset( $_GET['linkurl'] ) )
|
||||
$link->link_url = esc_url( $_GET['linkurl'] );
|
||||
$link->link_url = esc_url( wp_unslash( $_GET['linkurl'] ) );
|
||||
else
|
||||
$link->link_url = '';
|
||||
|
||||
if ( isset( $_GET['name'] ) )
|
||||
$link->link_name = esc_attr( $_GET['name'] );
|
||||
$link->link_name = esc_attr( wp_unslash( $_GET['name'] ) );
|
||||
else
|
||||
$link->link_name = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user