From a4383a13a1522aa6b9db861b732249d0a3897140 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 26 Jun 2006 15:40:12 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@595 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/admin-functions.php | 4 ++-- wp-admin/comment.php | 12 ++++++------ wp-admin/edit-form-advanced.php | 9 ++++----- wp-admin/edit-form-comment.php | 2 +- wp-admin/edit-form.php | 2 +- wp-admin/edit-page-form.php | 4 ++-- wp-admin/index.php | 4 ++-- wp-admin/link-manager.php | 2 +- wp-admin/link.php | 2 +- wp-admin/options.php | 4 ++-- wp-admin/page.php | 10 +++++----- wp-admin/post.php | 11 ++++++----- wp-admin/update-links.php | 2 +- wp-admin/upgrade.php | 2 +- wp-includes/classes.php | 1 + wp-includes/formatting.php | 4 +++- wp-includes/functions.php | 27 +++++++++++++++++++++++++++ wp-includes/pluggable.php | 2 +- wp-includes/vars.php | 2 +- wp-pass.php | 4 ++-- 20 files changed, 70 insertions(+), 40 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index d229073..3cae3ae 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -664,7 +664,7 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) { $default_link_cat_id = get_option('default_link_category'); if ( ($category->cat_ID != $default_cat_id) && ($category->cat_ID != $default_link_cat_id) ) - $edit .= "cat_ID ) . "' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '" . sprintf(__("You are about to delete the category "%s".\\nAll of its posts will go into the default category of "%s"\\nAll of its bookmarks will go into the default category of "%s".\\n"OK" to delete, "Cancel" to stop."), addslashes($category->cat_name), js_escape(get_catname($default_cat_id)), js_escape(get_catname($default_link_cat_id))) . "' );\" class='delete'>".__('Delete').""; + $edit .= "cat_ID ) . "' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '" . sprintf(__("You are about to delete the category "%s".\\nAll of its posts will go into the default category of "%s"\\nAll of its bookmarks will go into the default category of "%s".\\n"OK" to delete, "Cancel" to stop."), js_escape($category->cat_name), js_escape(get_catname($default_cat_id)), js_escape(get_catname($default_link_cat_id))) . "' );\" class='delete'>".__('Delete').""; else $edit .= "".__("Default"); } @@ -718,7 +718,7 @@ function page_rows($parent = 0, $level = 0, $pages = 0, $hierarchy = true) { post_modified); ?> " . __('Edit') . ""; } ?> - " . __('Delete') . ""; } ?> + " . __('Delete') . ""; } ?> comment_ID); - if (($_SERVER['HTTP_REFERER'] != '') && (false == $noredir)) { - header('Location: ' . $_SERVER['HTTP_REFERER']); + if ((wp_get_referer() != '') && (false == $noredir)) { + header('Location: ' . wp_get_referer()); } else { header('Location: '. get_settings('siteurl') .'/wp-admin/edit-comments.php'); } @@ -144,8 +144,8 @@ case 'unapprovecomment': wp_set_comment_status($comment->comment_ID, "hold"); - if (($_SERVER['HTTP_REFERER'] != "") && (false == $noredir)) { - header('Location: ' . $_SERVER['HTTP_REFERER']); + if ((wp_get_referer() != "") && (false == $noredir)) { + header('Location: ' . wp_get_referer()); } else { header('Location: '. get_settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); } @@ -175,8 +175,8 @@ case 'approvecomment': } - if (($_SERVER['HTTP_REFERER'] != "") && (false == $noredir)) { - header('Location: ' . $_SERVER['HTTP_REFERER']); + if ((wp_get_referer() != "") && (false == $noredir)) { + header('Location: ' . wp_get_referer()); } else { header('Location: '. get_settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); } diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 894e239..5431ce2 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -79,8 +79,7 @@ addLoadEvent(focusit);
- - +
@@ -170,10 +169,10 @@ if ('publish' != $post->post_status || 0 == $post_ID) {

@@ -227,7 +226,7 @@ list_meta($metadata); -post_title) ) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> /> +post_title) ) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> /> diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 1f23cef..46d9447 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -42,7 +42,7 @@ addLoadEvent(focusit);

- +

diff --git a/wp-admin/edit-form.php b/wp-admin/edit-form.php index dd4bc75..3837fa3 100644 --- a/wp-admin/edit-form.php +++ b/wp-admin/edit-form.php @@ -64,7 +64,7 @@ edCanvas = document.getElementById('content'); '; } ?> - +

diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index 530f979..14d5fa8 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -14,7 +14,7 @@ if (0 == $post_ID) { $form_extra = ""; } -$sendto = $_SERVER['HTTP_REFERER']; +$sendto = wp_get_referer(); if ( 0 != $post_ID && $sendto == get_permalink($post_ID) ) $sendto = 'redo'; @@ -185,7 +185,7 @@ list_meta($metadata); ID) ) ?> - escape($post->post_title) ) . "')\""; ?> /> + post_title) ) . "')\""; ?> /> diff --git a/wp-admin/index.php b/wp-admin/index.php index 306e0b3..8455e80 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -43,7 +43,6 @@ if ( $comments || $numcomments ) :

»

-