[wp-trac] [WordPress Trac] #26042: wp_save_post_revision() can compare against the wrong $last_revision post

WordPress Trac noreply at wordpress.org
Tue Mar 25 17:52:12 UTC 2014


#26042: wp_save_post_revision() can compare against the wrong $last_revision post
-----------------------------------------------+---------------------------
 Reporter:  wonderboymusic                     |       Owner:
     Type:  defect (bug)                       |  wonderboymusic
 Priority:  normal                             |      Status:  reopened
Component:  Revisions                          |   Milestone:  3.9
 Severity:  blocker                            |     Version:
 Keywords:  has-patch needs-unit-tests commit  |  Resolution:
                                               |     Focuses:
-----------------------------------------------+---------------------------

Comment (by wonderboymusic):

 A note: `wp_get_post_revisions()` calls `get_children()` while calls
 `get_posts()` which suppresses filters. So, even if we wanted to, we
 couldn't filter the query here, which it what I was gonna try to do.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26042#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list