WordPress.org

Make WordPress Core

Ticket #24447: 24447.patch

File 24447.patch, 649 bytes (added by johnbillion, 10 months ago)
  • wp-admin/includes/misc.php

     
    646646                if ( ! current_user_can('edit_post', $post_id) ) 
    647647                        return $response; 
    648648 
    649                 if ( ! empty( $received['post_nonce'] ) && 2 === wp_verify_nonce( $received['post_nonce'], 'update-post_' . $post_id ) ) { 
     649                if ( ! empty( $received['post_nonce'] ) ) { 
    650650                        $response['wp-refresh-post-nonces'] = array( 
    651651                                'replace-autosavenonce' => wp_create_nonce('autosave'), 
    652652                                'replace-getpermalinknonce' => wp_create_nonce('getpermalink'),