Changeset 54483 for trunk/src/wp-includes/blocks/page-list.php
- Timestamp:
- 10/11/2022 03:24:12 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/page-list.php
r54257 r54483 120 120 } elseif ( $has_custom_font_size ) { 121 121 // Add the custom font size inline style. 122 $font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] ); 122 $font_sizes['inline_styles'] = sprintf( 123 'font-size: %s;', 124 gutenberg_get_typography_font_size_value( 125 array( 126 'size' => $context['style']['typography']['fontSize'], 127 ) 128 ) 129 ); 123 130 } 124 131 … … 300 307 $nested_pages = block_core_page_list_nest_pages( $top_level_pages, $pages_with_children ); 301 308 302 // Limit the number of items to be visually displayed.303 if ( ! empty( $attributes['__unstableMaxPages'] ) ) {304 $nested_pages = array_slice( $nested_pages, 0, $attributes['__unstableMaxPages'] );305 }306 307 309 $is_navigation_child = array_key_exists( 'showSubmenuIcon', $block->context ); 308 310
Note: See TracChangeset
for help on using the changeset viewer.