[wp-trac] [WordPress Trac] #7756: AJAX saving method instead of reloading the page
WordPress Trac
noreply at wordpress.org
Sun May 17 15:15:50 UTC 2015
#7756: AJAX saving method instead of reloading the page
-------------------------+-----------------------------
Reporter: jdingman | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
-------------------------+-----------------------------
Comment (by iseulde):
* The hooks in `post.php` and `post-new.php` are slightly different, so
this could mean the page needs to be refreshed when transitioning between
the two. Some plugin also add or remove fields from the page depending on
the status of the post. For example, a plugin may remove the permalink
field and date field from the page once the post has been published, to
prevent the user from changing those. Lots of things can happen here.
Plugins rely on the page being refreshed and actions and filters being
rerun, so it's going to be really hard to change this.
* Nonces expire after 24 hours. Since the introduction of the heartbeat
API some nonces are refreshed if the user is active. Currently though, if
you're inactive for more than 24 hours, you will get an AYS message if you
try to save. All nonces that are not refreshed with the Heartbeat API will
expire if you don't save the post (page refresh) within 24 hours of the
last save. This is something that needs to be fixed regardless, but with
ajax saving it becomes more pronounced if it remains unfixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/7756#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list