Autosave / AYS on the attachment edit screen
|Reported by:||helenyhou||Owned by:||azaozz|
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.
Change History (36)
- Keywords needs-patch added; has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened