diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps-provider.php b/src/wp-includes/sitemaps/class-wp-sitemaps-provider.php index f89d9c9d33..877ebd81e3 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps-provider.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps-provider.php @@ -107,7 +107,6 @@ abstract class WP_Sitemaps_Provider { foreach ( $sitemap_types as $type ) { for ( $page = 1; $page <= $type['pages']; $page ++ ) { - $loc = $this->get_sitemap_url( $type['name'], $page ); $sitemap_entry = array( 'loc' => $this->get_sitemap_url( $type['name'], $page ), );