Make WordPress Core


Ignore:
Timestamp:
06/22/2021 09:58:32 AM (2 years ago)
Author:
jorgefilipecosta
Message:

Block Editor: Package updates for Beta 3.

The commit updates the WordPress packages for beta 3.

Props nosolosw, noisysocks, youknowriad.
See #53397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/page-list.php

    r51105 r51199  
    9393 * @return string List markup.
    9494 */
    95 function render_nested_page_list( $nested_pages ) {
     95function block_core_page_list_render_nested_page_list( $nested_pages ) {
    9696    if ( empty( $nested_pages ) ) {
    9797        return;
     
    110110        if ( isset( $page['children'] ) ) {
    111111            $markup .= '<span class="wp-block-page-list__submenu-icon"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></span>';
    112             $markup .= '<ul class="submenu-container">' . render_nested_page_list( $page['children'] ) . '</ul>';
     112            $markup .= '<ul class="submenu-container">' . block_core_page_list_render_nested_page_list( $page['children'] ) . '</ul>';
    113113        }
    114114        $markup .= '</li>';
     
    125125 * @return array The nested array of pages.
    126126 */
    127 function nest_pages( $current_level, $children ) {
     127function block_core_page_list_nest_pages( $current_level, $children ) {
    128128    if ( empty( $current_level ) ) {
    129129        return;
     
    131131    foreach ( (array) $current_level as $key => $current ) {
    132132        if ( isset( $children[ $key ] ) ) {
    133             $current_level[ $key ]['children'] = nest_pages( $children[ $key ], $children );
     133            $current_level[ $key ]['children'] = block_core_page_list_nest_pages( $children[ $key ], $children );
    134134        }
    135135    }
     
    181181    }
    182182
    183     $nested_pages = nest_pages( $top_level_pages, $pages_with_children );
     183    $nested_pages = block_core_page_list_nest_pages( $top_level_pages, $pages_with_children );
    184184
    185185    $wrapper_markup = '<ul %1$s>%2$s</ul>';
    186186
    187     $items_markup = render_nested_page_list( $nested_pages );
     187    $items_markup = block_core_page_list_render_nested_page_list( $nested_pages );
    188188
    189189    $colors          = block_core_page_list_build_css_colors( $block->context );
Note: See TracChangeset for help on using the changeset viewer.