X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5aa86a9053fb0fa15846bb60aac2fb8fdfff524a..72836ec95a52eacbda4dc5aa296b7dd6de08bd3b:/wp-admin/link-manager.php diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 92194f03..cbcf689b 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -7,7 +7,7 @@ */ /** Load WordPress Administration Bootstrap */ -require_once ('admin.php'); +require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'manage_links' ) ) wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) ); @@ -31,7 +31,7 @@ if ( $doaction && isset( $_REQUEST['linkcheck'] ) ) { exit; } } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { - wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), stripslashes( $_SERVER['REQUEST_URI'] ) ) ); + wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); exit; } @@ -61,7 +61,7 @@ get_current_screen()->set_help_sidebar( '

' . __('Support Forums') . '

' ); -include_once ('./admin-header.php'); +include_once( ABSPATH . 'wp-admin/admin-header.php' ); if ( ! current_user_can('manage_links') ) wp_die(__("You do not have sufficient permissions to edit the links for this site.")); @@ -72,7 +72,7 @@ if ( ! current_user_can('manage_links') )

' . __('Search results for “%s”') . '', esc_html( stripslashes($_REQUEST['s']) ) ); ?> + printf( '' . __('Search results for “%s”') . '', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>