• Clicking “rebuild the sitemap manually” link in the WP 2.1 admin panel generates a blank page in Firefox 2 and IR6.

    The fix is to replace line 2331 of sitemap.php:

    header(“location: ” . $this->GetBackLink());

    by the following:

    // Start gamedujour.com patch
    if (!headers_sent())
    {
    header('Location: https://' . $_SERVER['HTTP_HOST'] . $this->GetBackLink());
    }
    else
    {
    echo '<script type="text/javascript">';
    echo 'window.location.href="https://' . $_SERVER['HTTP_HOST'] . $this->GetBackLink() . '";';
    echo '</script>';
    echo '<noscript>';
    echo '<meta http-equiv="refresh" content="0;url=https://' . $_SERVER['HTTP_HOST'] . $this->GetBackLink() . '" />';
    echo '</noscript>';
    }
    // End gamdedujour.com patch

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug fix for Sitemap Generator for WordPress 3.0b6’ is closed to new replies.