Make WordPress Core


Ignore:
Timestamp:
10/28/2025 12:24:06 PM (10 months ago)
Author:
ellatrix
Message:

Update Gutenberg packages for Beta 2.

Merges commits on the wp/6.9 branch.
See https://github.com/WordPress/gutenberg/commits/wp/6.9/.

Fixes #64158.
Props priethor, ellatrix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/term-template.php

    r61009 r61077  
    3939                $queried_object = get_queried_object();
    4040
    41                 // For hierarchical taxonomies, show direct children of the current term.
     41                // For hierarchical taxonomies, show children of the current term.
    4242                // For non-hierarchical taxonomies, show all terms (don't set parent).
    4343                if ( is_taxonomy_hierarchical( $queried_object->taxonomy ) ) {
    44                         $query_args['parent'] = $queried_object->term_id;
     44                        // If showNested is true, use child_of to include nested terms.
     45                        // Otherwise, use parent to show only direct children.
     46                        if ( ! empty( $query['showNested'] ) ) {
     47                                $query_args['child_of'] = $queried_object->term_id;
     48                        } else {
     49                                $query_args['parent'] = $queried_object->term_id;
     50                        }
    4551                }
    4652                $query_args['taxonomy'] = $queried_object->taxonomy;
Note: See TracChangeset for help on using the changeset viewer.