WordPress.org

Make WordPress Core

Ticket #10525: 10525.diff

File 10525.diff, 453 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/post.php

     
    36953695 */ 
    36963696function wp_save_post_revision( $post_id ) { 
    36973697        // We do autosaves manually with wp_create_post_autosave() 
    3698         if ( @constant( 'DOING_AUTOSAVE' ) ) 
     3698        if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) 
    36993699                return; 
    37003700 
    37013701        // WP_POST_REVISIONS = 0, false