[wp-trac] [WordPress Trac] #43521: Excluded terms filter in get_adjacent_post is not executed if excluded_terms parameter is empty

WordPress Trac noreply at wordpress.org
Tue Jan 15 01:53:07 UTC 2019


#43521: Excluded terms filter in get_adjacent_post is not executed if
excluded_terms parameter is empty
--------------------------------------+---------------------
 Reporter:  zottto                    |       Owner:  pento
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.1
Component:  Posts, Post Types         |     Version:  4.9.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by pento):

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


Comment:

 In [changeset:"44591" 44591]:
 {{{
 #!CommitTicketReference repository="" revision="44591"
 Link Template: In `get_adjacent_post()`, move the sanitisation of
 `$excluded_terms` earlier.

 This is a followup to [42828], ensuring that the
 `get_{$adjacent}_post_excluded_terms` filter is always passed an array, as
 expected.

 Props soulseekah, zottto.
 Fixes #43521.
 }}}

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


More information about the wp-trac mailing list