Coding Standards: Remove unused variable in WP_Sitemaps_Provider::get_sitemap_entries().

Follow-up to [48072].

See #49542, #50117.

git-svn-id: https://develop.svn.wordpress.org/trunk@48080 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-06-18 14:42:36 +00:00
parent c55d9d0159
commit 74967e46ab

View File

@ -107,7 +107,6 @@ abstract class WP_Sitemaps_Provider {
foreach ( $sitemap_types as $type ) { foreach ( $sitemap_types as $type ) {
for ( $page = 1; $page <= $type['pages']; $page ++ ) { for ( $page = 1; $page <= $type['pages']; $page ++ ) {
$loc = $this->get_sitemap_url( $type['name'], $page );
$sitemap_entry = array( $sitemap_entry = array(
'loc' => $this->get_sitemap_url( $type['name'], $page ), 'loc' => $this->get_sitemap_url( $type['name'], $page ),
); );