I have a new bedrock install with only one plugin (classic editor) currently installed. I can’t access the menus page from admin and when I go to the url itself I get this error
Fatal error: Uncaught Error: Call to undefined function __() in /.../pact/web/wp/wp-admin/menu.php:24 Stack trace: #0 {main} thrown in /.../pact/web/wp/wp-admin/menu.php on line 24
I have tried switching to a default WP theme and the issue is still there.
Lastly, Calling wp_nav_menu( array( ‘theme_location’ => ‘main-menu’ ) ); returns all the pages listed from date published
edit - function.php
function theme_setup() {
add_theme_support( 'menus' );
register_nav_menus([
'main-menu' => __( 'Main Menu', 'site' ),
'footer-menu' => __( 'Footer Menu', 'site' ),
]);
}
add_action('after_setup_theme', 'theme_setup');