Skip to content

Commit

Permalink
Temporary workaround for sitemaps returning 404
Browse files Browse the repository at this point in the history
  • Loading branch information
vaurdan authored Aug 25, 2020
1 parent c317a2e commit cd6b691
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vipgo-helper.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php

// VIP Go-specific code can go here...

// Temporary workaround for sitemaps returning 404 (https://core.trac.wordpress.org/ticket/51136)
add_action('init', function() {
global $wp_sitemaps;
remove_action( 'template_redirect', array( $wp_sitemaps, 'render_sitemaps' ) );
}, 100 );

1 comment on commit cd6b691

@rodruiz
Copy link

@rodruiz rodruiz commented on cd6b691 Sep 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this PR #163 you do not need this workaround.

Please sign in to comment.