From 2650c61745e9406eb6b24d964fe26427c2c598f9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 27 Aug 2008 18:18:55 +0000 Subject: [PATCH] Fix delete page nonce. see #7552 git-svn-id: https://develop.svn.wordpress.org/trunk@8750 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 4e05c746df..d559bd8cc5 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 ) {