WordPress.org

Make WordPress Core

Opened 7 years ago

Last modified 6 weeks ago

#22601 new enhancement

Make post content autosave work more generically

Reported by: helen Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Autosave Keywords:
Focuses: Cc:

Description

The JS for autosave/AYS looks for the contents of #post #content. While we should fix the other JS issue related to targeting #content in #22600, it seems that autosave/AYS should be looking for the textarea (or whatever type of input) with the name of content instead, since having that data in the form will save to the post content. That way, if somebody does choose to use a different ID but the right input name, the autosave benefits will kick in.

Discovered while working on #22491.

Change History (4)

#1 @helen
7 years ago

  • Reporter changed from helenyhou to helen

This ticket was mentioned in IRC in #wordpress-dev by helen. View the logs.


5 years ago

#3 @nacin
5 years ago

  • Milestone changed from Awaiting Review to Future Release

It would definitely be nice to decouple autosave a bit. After the refactoring in 3.9 this could be next.

#4 @chriscct7
4 years ago

  • Keywords needs-patch added
Note: See TracTickets for help on using tickets.