Make WordPress Core

Changeset 12265


Ignore:
Timestamp:
11/23/2009 06:47:22 PM (15 years ago)
Author:
ryan
Message:

Check if defined to avoid having to suppress. Props Mittineague, Denis-de-Bernardy. fixes #10525

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r12237 r12265  
    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
Note: See TracChangeset for help on using the changeset viewer.