Fix delete page nonce. Fixes #7936 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@9263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3bc39364c4
commit
1a18d1b462
|
@ -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