#43639 closed defect (bug) (fixed)
wp_terms_checklist post_id argument is null, should be 0
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch commit |
Focuses: | administration | Cc: |
Description
In includes/class-wp-posts-list-table.php
we call wp_terms_checklist
with post_id set to null
.
wp_terms_checklist
post_id argument should be an int and 0
is used as the default elsewhere (ie: ajax-actions.php).
Change History (8)
This ticket was mentioned in Slack in #core-site-health by hareesh-pillai. View the logs.
5 years ago
This ticket was mentioned in PR #1173 on WordPress/wordpress-develop by donmhico.
4 years ago
#4
- Keywords has-patch added; needs-patch removed
#6
@
4 years ago
- Keywords commit added
- Milestone changed from Awaiting Review to 5.9
Reviewed and found valid. This patch should be committed.
As per the docs for the wp_terms_checklist() function, the default value is integer 0
, not null
.
#7
@
4 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 51520:
4 years ago
#8
Closing as committed in https://core.trac.wordpress.org/changeset/51520
Note: See
TracTickets for help on using
tickets.
Pass
0
instead ofnull
onwp_terms_checklist()
for consistency.Trac ticket: https://core.trac.wordpress.org/ticket/43639