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 77e3b9e commit f7c30d3Copy full SHA for f7c30d3
inc/namespace.php
@@ -339,6 +339,10 @@ function ping_indexnow( $post ) {
339
*
340
* This prevents unnecessary pings for new URLs that are either not
341
* viewable (ie, will 404) or noindexed by an SEO plugin.
342
+ *
343
+ * If the URL has been previously sent to IndexNow it will still be
344
+ * pinged to encourage search engines to de-index the page from their
345
+ * search engine, either because it's a 404 or should not be listed.
346
*/
347
if ( is_post_publicly_viewable( $post ) && ! SEOCompat\is_noindex( $post ) && ! in_array( $current_url, $url_list, true ) ) {
348
$url_list[] = get_permalink( $post );
0 commit comments