Check if defined to avoid having to suppress. Props Mittineague, Denis-de-Bernardy. fixes #10525
git-svn-id: http://svn.automattic.com/wordpress/trunk@12265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
97b5a5f483
commit
a03752fdb4
|
@ -3695,7 +3695,7 @@ function _wp_post_revision_fields( $post = null, $autosave = false ) {
|
||||||
*/
|
*/
|
||||||
function wp_save_post_revision( $post_id ) {
|
function wp_save_post_revision( $post_id ) {
|
||||||
// We do autosaves manually with wp_create_post_autosave()
|
// We do autosaves manually with wp_create_post_autosave()
|
||||||
if ( @constant( 'DOING_AUTOSAVE' ) )
|
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// WP_POST_REVISIONS = 0, false
|
// WP_POST_REVISIONS = 0, false
|
||||||
|
|
Loading…
Reference in New Issue