[wp-trac] [WordPress Trac] #22491: Autosave / AYS on the attachment edit screen
WordPress Trac
noreply at wordpress.org
Sat Nov 17 21:57:54 UTC 2012
#22491: Autosave / AYS on the attachment edit screen
-----------------------+--------------------------
Reporter: helenyhou | Type: defect (bug)
Status: new | Priority: normal
Milestone: 3.5 | Component: Media
Version: trunk | Severity: normal
Keywords: |
-----------------------+--------------------------
Autosave/AYS you want to leave this page behavior is based on an input
with the ID of content; specifically, the JS is looking for `#post
#content`. The attachment edit screen uses `attachment_content` for the
textarea's ID instead (`#content` is also used for some JS dealing with
the editor size). Thus, if there is a description/attachment page content
for the attachment, you'll get an AYS when trying to leave the page, even
if you haven't changed anything, and if autosave has fired (which you can
trigger by running autosave(); in the console instead of waiting), there
will always be a red warning at the top saying that there is a newer
autosave, which has empty content.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22491>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list