Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] is_front_page() is true for sitemap_index.xml

  • holstebm

    (@holstebm)


    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/

  • The topic ‘[Plugin: WordPress SEO by Yoast] is_front_page() is true for sitemap_index.xml’ is closed to new replies.