Support » Plugin: Yoast SEO » Ping Sitemap Out of Date Code Needs Urgent Correction (Here’s the fix)

  • Resolved rodrigo2302

    (@rodrigo2302)


    Ping Sitemap Out of Date Code Needs Urgent Correction
    Here’s the fix for the Yoast XML Sitemap

    For several months I realize that I post a new post on my site and it does not appear in google, times have passed and I still continue with the indexing problem. New posts taking more than 5 days to appear on google, that’s when I went to investigate because something is wrong.

    I investigated and realized that the delay in the indexing of my site is an error of the Yoast Plugin that is with its Sitemap Ping code outdated, I came here to report for the correction to be made since this affects millions of users.

    The error is in the following path:
    wordpress-seo/inc/sitemaps/class-sitemaps.php

    Part of the code is below >>

    // Ping Google and Bing.
    wp_remote_get( ‘http://www.google.com/webmasters/tools/ping?sitemap=’ . $url, array( ‘blocking’ => false ) );
    wp_remote_get( ‘http://www.bing.com/ping?sitemap=’ . $url, array( ‘blocking’ => false ) );
    }

    # Code that is currently active in Yoast Sitemap and which no longer works for a long time, needs urgent update

    Now follows the updated code with the current and correct ping URL currently in use by Google and Bing Search

    // Ping Google and Bing.
    wp_remote_get( ‘https://www.google.com/webmasters/sitemaps/ping?sitemap=’ . $url, array( ‘blocking’ => false ) );
    wp_remote_get( ‘https://www.bing.com/webmaster/ping.aspx?siteMap=’ . $url, array( ‘blocking’ => false ) );
    }

    # Code in working, which urgently needs to be updated in the Yoast Plugin

    Yes, the code I just sent updated only updates the Ping URL of the search engines and nothing else, as simple as that

    Okay, I did my part reporting the outdated ping url of the two search engines (Google, Bing), I hope the update is done and not ignored, since this happened several months ago and I did tests, I investigated before reaching any conclusion. I believe that with the update several million users using their Plugin Yoast will feel the difference quickly.

    It is worth remembering that the updated code that needs to be exchanged in Yoast has already been sent along with this message

    Thanks, anything can talk to me

    Rodrigo Vieira Santana Souza (Brazil)

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ping Sitemap Out of Date Code Needs Urgent Correction (Here’s the fix)’ is closed to new replies.