Changeset 52275 for trunk/src/wp-includes/blocks/page-list.php
- Timestamp:
- 11/30/2021 12:22:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/page-list.php
r52232 r52275 294 294 $nested_pages = block_core_page_list_nest_pages( $top_level_pages, $pages_with_children ); 295 295 296 // Limit the number of items to be visually displayed. 297 if ( ! empty( $attributes['__unstableMaxPages'] ) ) { 298 $nested_pages = array_slice( $nested_pages, 0, $attributes['__unstableMaxPages'] ); 299 } 300 296 301 $is_navigation_child = array_key_exists( 'showSubmenuIcon', $block->context ); 297 302
Note: See TracChangeset
for help on using the changeset viewer.