X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5aa86a9053fb0fa15846bb60aac2fb8fdfff524a..2329f698283944696a7076258cf816545970bb47:/wp-admin/link-manager.php diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 92194f03..8e12aa3d 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; } @@ -58,10 +58,10 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . '

' . __('Documentation on Managing Links') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('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.")); @@ -69,10 +69,9 @@ 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']) ) ); ?>