From 8ee6921b498028c4b977ed512a04e45dd1169ad4 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 18 May 2006 06:49:22 +0000 Subject: [PATCH] Improvements to the nonce AYS from mdawaffe. #2734 git-svn-id: http://svn.automattic.com/wordpress/trunk@3783 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/comment.php | 6 +++--- wp-admin/page.php | 4 ++-- wp-admin/post.php | 6 ++++-- wp-admin/profile-update.php | 2 ++ wp-admin/wp-admin.css | 2 +- wp-includes/pluggable-functions.php | 19 ++++++++++--------- 6 files changed, 22 insertions(+), 17 deletions(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index fa4bd246c..9c34a9c00 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -1,6 +1,8 @@ \ No newline at end of file +?> diff --git a/wp-admin/page.php b/wp-admin/page.php index 66c4c7eab..9d2995f4c 100644 --- a/wp-admin/page.php +++ b/wp-admin/page.php @@ -1,6 +1,8 @@ \n\n\n"; - $html .= "\n\t" . __('WordPress Confirmation') . "\n"; - $html .= "\n\n"; + if ( $referer ) + $adminurl = $referer; + $title = __('WordPress Confirmation'); + require_once(ABSPATH . '/wp-admin/admin-header.php'); if ( $_POST ) { $q = http_build_query($_POST); $q = explode( ini_get('arg_separator.output'), $q); @@ -248,13 +248,14 @@ function check_admin_referer($action = -1) { $html .= "\t\t\n"; } $html .= "\t\t\n"; - $html .= "\t\t

" . __('Are you sure you want to do this?') . "

\n\t\t

No

\n\t\n"; + $html .= "\t\t
\n\t\t

" . __('Are you sure you want to do this?') . "

\n\t\t

" . __('No') . "

\n\t\t
\n\t\n"; } else { - $html .= "\t

" . __('Are you sure you want to do this?') . "

\n\t\t

No " . __('Yes') . "

\n"; + $html .= "\t
\n\t

" . __('Are you sure you want to do this?') . "

\n\t

" . __('No') . " " . __('Yes') . "

\n\t
\n"; } $html .= "\n"; - - die($html); + echo $html; + include_once(ABSPATH . '/wp-admin/admin-footer.php'); + die(); } do_action('check_admin_referer', $action); }endif;