slug = $wp->request ? aioseo()->helpers->cleanSlug( $wp->request ) // We must fallback to the REQUEST URI in case the site uses plain permalinks. : aioseo()->helpers->cleanSlug( aioseo()->helpers->getRequestUrl() ); // Check if we need to remove the trailing slash or redirect another sitemap URL like "wp-sitemap.xml". $this->maybeRedirect(); aioseo()->addons->doAddonFunction( 'requestParser', 'checkRequest' ); // The addons need to run before Core does, since the Video and News Sitemap will otherwise be mistaken for the regular one. parent::checkRequest( $wp ); } }