Fix delete page nonce

git-svn-id: http://svn.automattic.com/wordpress/trunk@6787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-11 09:18:11 +00:00
parent 3b82a74e29
commit 1e4cf4d54d
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_I
}
if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )
echo "<a href='" . wp_nonce_url("page.php?action=delete&amp;post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->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."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete page') . "</a>";
echo "<a href='" . wp_nonce_url("page.php?action=delete&amp;post=$post_ID", 'delete-page_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->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."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete page') . "</a>";
?>
<?php if ($post_ID): ?>
<br />