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 e681496 commit c1b9685Copy full SHA for c1b9685
inc/namespace.php
@@ -300,6 +300,11 @@ function ping_indexnow( $post ) {
300
*/
301
$url_list = apply_filters( 'pwcc/index-now/url-list', $url_list, $post );
302
303
+ if ( empty( $url_list ) ) {
304
+ // If no URLs to ping, do nothing.
305
+ return;
306
+ }
307
+
308
if ( empty( get_option( 'permalink_structure' ) ) ) {
309
$key_location = home_url( '?pwcc_indexnow_key=' . $key );
310
} else {
0 commit comments