[wp-trac] [WordPress Trac] #32833: previous_post_link/next_post_link disappear when excluding by post_format

WordPress Trac noreply at wordpress.org
Sat Sep 12 20:33:09 UTC 2015


#32833: previous_post_link/next_post_link disappear when excluding by post_format
-------------------------------------+---------------------------
 Reporter:  markshiz                 |       Owner:  boonebgorges
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.4
Component:  General                  |     Version:  4.2.2
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34088"]:
 {{{
 #!CommitTicketReference repository="" revision="34088"
 Remove extraneous table join in `get_adjacent_post()`.

 Since [29248], a table join has not been necessary to process the
 `$excluded_terms` parameter of `get_adjacent_post()`. Aside from adding
 extra
 overhead, this join meant that post records that don't have any
 corresponding
 rows in `wp_term_relationships` were erroneously excluded from results.

 Fixes #32833.
 }}}

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


More information about the wp-trac mailing list