[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 02:46:37 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
--------------------------+-----------------------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"48880" 48880]:
{{{
#!CommitTicketReference repository="" revision="48880"
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.
Fixes #51137.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51137#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list