[wp-trac] [WordPress Trac] #25272: Refactor/clean up autosave and use heartbeat for transport
WordPress Trac
noreply at wordpress.org
Wed Sep 11 02:03:07 UTC 2013
#25272: Refactor/clean up autosave and use heartbeat for transport
-------------------------+-----------------------
Reporter: azaozz | Owner: azaozz
Type: enhancement | Status: assigned
Priority: normal | Milestone: 3.7
Component: Autosave | Version: trunk
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Changes (by azaozz):
* owner: => azaozz
* status: new => assigned
Comment:
In 25272.patch:
- Remove wp_ajax_autosave().
- Introduce `autosave( $post_data )` (in PHP).
- Remove the autosave nonce, use the `edit_post . $post_id` nonce instead.
- Change post_status from auto-draft to draft in
`_wp_translate_postdata()` (before the "What to do based on which button
they pressed" part).
- Change `wp_create_post_autosave()` to accept either the post data or
post_id.
- Update `post_preview()`.
- Refactor autosave.js:
- Use heartbeat for transport.
- Fix disabling and enabling of the Submit box buttons and links.
- Fix behavior when users click "Preview".
- Fix temporarily stopping of autosaves to avoid collisions.
- Add `wp.autosave.remote.disable()` and
`wp.autosave.remote.triggerSave()`.
- Add `'before-autosave'` and `'after-autosave'` custom events. Use the
after-autosave event to load the edit slug part under the title field.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25272#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list