Fix delete page nonce. Fixes #7936 props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
428c9158e8
commit
b44779df6c
|
@ -116,7 +116,7 @@ if ( $can_publish OR ( $post->post_status == 'publish' AND current_user_can('edi
|
|||
<?php } ?>
|
||||
|
||||
<?php if ( ('edit' == $action) && current_user_can('delete_page', $post->ID) ) { ?>
|
||||
<div class="insidebox" id="deletebutton"><a class="submitdelete" href="<?php echo wp_nonce_url("page.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID); ?>" onclick="if ( confirm('<?php echo 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;"><?php _e('Delete page'); ?></a></div>
|
||||
<div class="insidebox" id="deletebutton"><a class="submitdelete" href="<?php echo wp_nonce_url("page.php?action=delete&post=$post->ID", 'delete-page_' . $post->ID); ?>" onclick="if ( confirm('<?php echo 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;"><?php _e('Delete page'); ?></a></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue