[wp-trac] [WordPress Trac] #7392: Don't create new autosave revision if nothing has changed yet
WordPress Trac
noreply at wordpress.org
Wed Jul 24 20:17:47 UTC 2013
#7392: Don't create new autosave revision if nothing has changed yet
-------------------------------------------------+-------------------------
Reporter: Otto42 | Owner: westi
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.6
Component: Autosave | Version: 2.6
Severity: minor | Resolution:
Keywords: has-patch needs-testing autosave- |
redo close |
-------------------------------------------------+-------------------------
Comment (by azaozz):
In .4.diff there is no need to run the content through
switchEditors.pre_wpautop() again. We wait for TinyMCE to load, then we
call editor.save() which serializes the iframe html, runs it through all
filters including pre_wpautop() and places it in the textarea. At this
point the content of the textarea is exactly the same as when autosave
retrieves it (if the user didn't type anything).
We need to load the content into TinyMCE and then save it back to the
textarea as when serializing the iframe html the order of tag attributes
may change and trigger a false positive (i.e. `<a title="..." src="...">`
would become `<a src="..." title="...">`).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7392#comment:37>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list