Make WordPress Core


Ignore:
Timestamp:
07/24/2013 05:37:53 AM (11 years ago)
Author:
nacin
Message:

Autosave: Don't save an autosave unnecessarily when the post editor loads and TinyMCE is the default editor.

Delete such useless autosaves when we detect them in edit-form-advanced.php.

see #7392.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r24762 r24787  
    9999        }
    100100    }
     101    // If this autosave isn't different from the current post, begone.
     102    if ( ! $notice )
     103        wp_delete_post_revision( $autosave->ID );
    101104    unset($autosave_field, $_autosave_field);
    102105}
Note: See TracChangeset for help on using the changeset viewer.