Ticket #24447: 24447.patch
File 24447.patch, 649 bytes (added by , 11 years ago) |
---|
-
wp-admin/includes/misc.php
646 646 if ( ! current_user_can('edit_post', $post_id) ) 647 647 return $response; 648 648 649 if ( ! empty( $received['post_nonce'] ) && 2 === wp_verify_nonce( $received['post_nonce'], 'update-post_' . $post_id )) {649 if ( ! empty( $received['post_nonce'] ) ) { 650 650 $response['wp-refresh-post-nonces'] = array( 651 651 'replace-autosavenonce' => wp_create_nonce('autosave'), 652 652 'replace-getpermalinknonce' => wp_create_nonce('getpermalink'),