Skip to content

Commit d93531a

Browse files
committed
Expand comment.
1 parent 195c68e commit d93531a

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
@@ -314,6 +314,10 @@ function ping_indexnow( $post ) {
314314
*
315315
* This prevents unnecessary pings for new URLs that are either not
316316
* 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.
317321
*/
318322
if ( is_post_publicly_viewable( $post ) && ! SEOCompat\is_noindex( $post ) && ! in_array( $current_url, $url_list, true ) ) {
319323
$url_list[] = get_permalink( $post );

0 commit comments

Comments
 (0)