Skip to content

Commit f7c30d3

Browse files
committed
Expand comment.
1 parent 77e3b9e commit f7c30d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/namespace.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ function ping_indexnow( $post ) {
339339
*
340340
* This prevents unnecessary pings for new URLs that are either not
341341
* 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.
342346
*/
343347
if ( is_post_publicly_viewable( $post ) && ! SEOCompat\is_noindex( $post ) && ! in_array( $current_url, $url_list, true ) ) {
344348
$url_list[] = get_permalink( $post );

0 commit comments

Comments
 (0)