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

WordPress Trac noreply at wordpress.org
Fri Jul 9 23:11:32 UTC 2021


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

 * keywords:  has-patch => has-patch commit
 * milestone:  Awaiting Review => 5.9


Comment:

 Reviewed and found valid. This patch should be committed.

 As per the
 [https://developer.wordpress.org/reference/functions/wp_terms_checklist/
 docs for the wp_terms_checklist() function], the default value is integer
 `0`, not `null`.

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


More information about the wp-trac mailing list