We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195c68e commit d93531aCopy full SHA for d93531a
inc/namespace.php
@@ -314,6 +314,10 @@ function ping_indexnow( $post ) {
314
*
315
* This prevents unnecessary pings for new URLs that are either not
316
* viewable (ie, will 404) or noindexed by an SEO plugin.
317
+ *
318
+ * If the URL has been previously sent to IndexNow it will still be
319
+ * pinged to encourage search engines to de-index the page from their
320
+ * search engine, either because it's a 404 or should not be listed.
321
*/
322
if ( is_post_publicly_viewable( $post ) && ! SEOCompat\is_noindex( $post ) && ! in_array( $current_url, $url_list, true ) ) {
323
$url_list[] = get_permalink( $post );
0 commit comments