[wp-trac] [WordPress Trac] #43639: wp_terms_checklist post_id argument is null, should be 0

WordPress Trac noreply at wordpress.org
Sat Jul 31 09:49:50 UTC 2021


#43639: wp_terms_checklist post_id argument is null, should be 0
------------------------------+-----------------------------
 Reporter:  tareiking         |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.9
Component:  Taxonomy          |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  administration
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51520" 51520]:
 {{{
 #!CommitTicketReference repository="" revision="51520"
 Taxonomy: Pass correct default value for `$post_id` to
 `wp_terms_checklist()` in the posts list table.

 This matches the documented type of the `$post_id` argument and is
 consistent with other instances of `wp_terms_checklist()` calls.

 Per the function documentation, the default value is integer `0`, not
 `null`.

 Follow-up to [13535].

 Props tareiking, donmhico, jrf.
 Fixes #43639.
 }}}

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


More information about the wp-trac mailing list