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. Built from https://develop.svn.wordpress.org/trunk@51520 git-svn-id: http://core.svn.wordpress.org/trunk@51131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8935467410
commit
4889679ca5
|
@ -1725,7 +1725,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
<span class="title inline-edit-categories-label"><?php echo esc_html( $taxonomy->labels->name ); ?></span>
|
||||
<input type="hidden" name="<?php echo ( 'category' === $taxonomy->name ) ? 'post_category[]' : 'tax_input[' . esc_attr( $taxonomy->name ) . '][]'; ?>" value="0" />
|
||||
<ul class="cat-checklist <?php echo esc_attr( $taxonomy->name ); ?>-checklist">
|
||||
<?php wp_terms_checklist( null, array( 'taxonomy' => $taxonomy->name ) ); ?>
|
||||
<?php wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name ) ); ?>
|
||||
</ul>
|
||||
|
||||
<?php endforeach; // $hierarchical_taxonomies as $taxonomy ?>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51519';
|
||||
$wp_version = '5.9-alpha-51520';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue