/** * Filter the base URL of the sitemaps. * * @param string $base The string that should be added to home_url() to make the full base URL. */ $base = apply_filters( 'wpseo_sitemaps_base_url', $base ); /* * Get the scheme from the configured home URL instead of letting WordPress * determine the scheme based on the requested URI. */ return home_url( $base . $page, wp_parse_url( get_option( 'home' ), PHP_URL_SCHEME ) ); } }
Fatal error: Uncaught Error: Class "WPSEO_Sitemaps_Router" not found in /htdocs/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php:105 Stack trace: #0 /htdocs/wp-content/plugins/wordpress-seo/wp-seo-main.php(355): WPSEO_Sitemaps->__construct() #1 /htdocs/wp-includes/class-wp-hook.php(341): wpseo_init('') #2 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #3 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #4 /htdocs/wp-settings.php(593): do_action('plugins_loaded') #5 /htdocs/wp-config.php(117): require_once('/htdocs/wp-sett...') #6 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #7 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #8 /htdocs/index.php(17): require('/htdocs/wp-blog...') #9 {main} thrown in /htdocs/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php on line 105