[wp-trac] [WordPress Trac] #23901: Revisions: revisions.js clean up

WordPress Trac noreply at wordpress.org
Tue Apr 9 03:19:13 UTC 2013


#23901: Revisions: revisions.js clean up
--------------------------+--------------------
 Reporter:  ocean90       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  3.6
Component:  Revisions     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by adamsilverstein):

 Replying to [comment:23 azaozz]:
 > Replying to [comment:22 adamsilverstein]:
 >
 > Looking at 23901.8.diff: changing from ID to post_date in
 wp_ajax_revisions_data() fixes the above problem.
 >
 > Not sure about the changes in wp_list_post_revisions(). Seems the
 `$parent` arg there is not needed now as the revisions always include a
 copy of the current post as a "real" revision. Checking the plugins repo,
 this function doesn't seem used anywhere except in core, so deprecating
 one arg won't bring any back-compat problems.
 >
 > As this function is called after the revisions have been converted, it's
 not necessary to check the revisions version and prepend @post.
 >
 > 23901-9.patch​ deprecates the `$parent` arg in wp_list_post_revisions().

 right! perfect.

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


More information about the wp-trac mailing list