diff --git a/packages/block-library/src/page-list/index.php b/packages/block-library/src/page-list/index.php index a001966dd0c34d..1c4a27e6b5c4be 100644 --- a/packages/block-library/src/page-list/index.php +++ b/packages/block-library/src/page-list/index.php @@ -173,6 +173,11 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click, } } + $front_page_id = (int) get_option( 'page_on_front' ); + if ( (int) $page['page_id'] === $front_page_id ) { + $css_class .= ' menu-item-home'; + } + $title = wp_kses( $page['title'], wp_kses_allowed_html( 'post' ) ); $markup .= '
  • ';