WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
is_front_page() is true for sitemap_index.xml (1 post)

  1. holstebm
    Member
    Posted 3 years ago #

    is_front_page() is true when the sitemap_index.xml is generated which confuses other code that relies on the function.

    Wouldn't the sitemaps be more closely related to is_feed() than is_front_page()?

    Suggest adding the following to class-sitemaps.php around line 101:

    $GLOBALS['wp_query']->is_feed = true;

    and removing the is_front_page as well.

    http://wordpress.org/extend/plugins/wordpress-seo/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic