From ef3f4142132cc1d2a4665498c9739e47b1b8a98d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 23 Nov 2009 18:47:22 +0000 Subject: [PATCH] Check if defined to avoid having to suppress. Props Mittineague, Denis-de-Bernardy. fixes #10525 git-svn-id: https://develop.svn.wordpress.org/trunk@12265 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index d74046f93d..9f584e3d6c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3695,7 +3695,7 @@ function _wp_post_revision_fields( $post = null, $autosave = false ) { */ function wp_save_post_revision( $post_id ) { // We do autosaves manually with wp_create_post_autosave() - if ( @constant( 'DOING_AUTOSAVE' ) ) + if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; // WP_POST_REVISIONS = 0, false