[wp-trac] [WordPress Trac] #24804: Tighten up revisions UI metadata

WordPress Trac noreply at wordpress.org
Tue Jul 23 20:46:30 UTC 2013


#24804: Tighten up revisions UI metadata
----------------------------+-----------------------
 Reporter:  markjaquith     |       Owner:
     Type:  task (blessed)  |      Status:  reopened
 Priority:  normal          |   Milestone:  3.6
Component:  Revisions       |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+-----------------------

Comment (by nacin):

 The new revisions UI needs to work even when revisions are turned off,
 because it is also the autosave browser/comparer.

 [attachment:24804.12.diff] builds in 11.diff and also:
  * Makes wp_get_post_autosave() return autosaves even when revisions are
 disabled.
  * Hacks in the ability to compare to the original post (parent), not just
 a revision, so we can compare the current post to an autosave.
  * Creates some fun logic in wp_prepare_revisions_for_js() when revisions
 are disabled that would be better as a wp_get_post_'''autosaves'''()
 function.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24804#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list