[wp-trac] [WordPress Trac] #51137: wp_terms_checklist not checking selected taxonomy items with selected_cats option

WordPress Trac noreply at wordpress.org
Thu Aug 27 03:06:38 UTC 2020


#51137: wp_terms_checklist not checking selected taxonomy items with selected_cats
option
--------------------------+-----------------------------------------
 Reporter:  brianhogg     |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.5.1
Component:  Taxonomy      |     Version:  5.5
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  template, coding-standards
--------------------------+-----------------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48882" 48882]:
 {{{
 #!CommitTicketReference repository="" revision="48882"
 Taxonomy: Make sure `wp_terms_checklist()` and
 `Walker_Category_Checklist::start_el()` properly handle an array of
 strings as `selected_cats` or `popular_cats` values.

 Even with these values documented as an array of integers, they can
 technically also accept an array of strings, e.g. as form results.

 Add a unit test.

 Props brianhogg, TimothyBlynJacobs, SergeyBiryukov.
 Merges [48880] to the 5.5 branch.
 Fixes #51137.
 }}}

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


More information about the wp-trac mailing list