X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be8dc178e77d0b46189bbd8e33a216a9b90942..refs/tags/wordpress-2.9:/wp-admin/link-manager.php?ds=sidebyside
diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php
index 7638ece9..e818e392 100644
--- a/wp-admin/link-manager.php
+++ b/wp-admin/link-manager.php
@@ -18,13 +18,14 @@ if ( isset($_GET['action']) && isset($_GET['linkcheck']) ) {
wp_die( __('You do not have sufficient permissions to edit the links for this blog.') );
if ( 'delete' == $doaction ) {
- foreach ( (array) $_GET['linkcheck'] as $link_id ) {
+ $bulklinks = (array) $_GET['linkcheck'];
+ foreach ( $bulklinks as $link_id ) {
$link_id = (int) $link_id;
wp_delete_link($link_id);
}
- wp_redirect( wp_get_referer() );
+ wp_safe_redirect( wp_get_referer() );
exit;
}
} elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
@@ -71,16 +72,16 @@ switch ($order_by) {
-
' . __('Search results for “%s”') . '', wp_specialchars( stripslashes($_GET['s']) ) ); ?>
+ printf( '' . __('Search results for “%s”') . '', esc_html( stripslashes($_GET['s']) ) ); ?>
';
$deleted = (int) $_GET['deleted'];
- printf(__ngettext('%s link deleted.', '%s links deleted', $deleted), $deleted);
+ printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted);
echo '
';
$_SERVER['REQUEST_URI'] = remove_query_arg(array('deleted'), $_SERVER['REQUEST_URI']);
}
@@ -88,9 +89,9 @@ if ( isset($_GET['deleted']) ) {
@@ -103,14 +104,14 @@ if ( isset($_GET['deleted']) ) {
-
+
\n";
$select_cat .= '\n";
foreach ((array) $categories as $cat)
- $select_cat .= '\n";
+ $select_cat .= '\n";
$select_cat .= "\n";
$select_order = "
-
+
@@ -270,20 +274,5 @@ if ( $links ) {
-
-
-
+