X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5aa86a9053fb0fa15846bb60aac2fb8fdfff524a..refs/tags/wordpress-4.3:/wp-admin/link-manager.php diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 92194f03..8666f202 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; } @@ -57,11 +57,11 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . - '

' . __('Support Forums') . '

' + '

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

' . + '

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

'; + echo '

'; $deleted = (int) $_REQUEST['deleted']; printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted); echo '

'; @@ -85,7 +84,7 @@ if ( isset($_REQUEST['deleted']) ) { } ?> -
+ search_box( __( 'Search Links' ), 'link' ); ?> @@ -97,4 +96,4 @@ if ( isset($_REQUEST['deleted']) ) {