[wp-trac] [WordPress Trac] #7392: Don't create new autosave revision if nothing has changed yet
WordPress Trac
noreply at wordpress.org
Mon Jan 21 19:15:50 UTC 2013
#7392: Don't create new autosave revision if nothing has changed yet
-------------------------------------------------+-------------------------
Reporter: Otto42 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Autosave | Version: 2.6
Severity: minor | Resolution:
Keywords: has-patch needs-testing 3.6-early |
autosave-redo |
-------------------------------------------------+-------------------------
Comment (by azaozz):
This happens only when the Visual editor is default (is shown first).
Caused by running the post_content through wpautop before outputting it in
the textarea (TinyMCE needs the <p>), so the first `autosaveLast` (used to
determine if something has changed) gets post_content with <p> and is
later compared to post_content without <p>.
There are better ways to do that, should be fixed with the autosave
updates in 3.6.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7392#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list