From 34e52c701049dd8408718884759f07cb43663fba Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 27 Aug 2008 18:18:55 +0000 Subject: [PATCH] Fix delete page nonce. see #7552 git-svn-id: http://svn.automattic.com/wordpress/trunk@8750 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 4e05c746d..d559bd8cc 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -696,7 +696,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) { $actions = array(); $actions['edit'] = '' . __('Edit') . ''; - $actions['delete'] = "ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $page->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $page->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . ""; + $actions['delete'] = "ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $page->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $page->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . ""; $action_count = count($actions); $i = 0; foreach ( $actions as $action => $link ) {