Skip to content

Commit 145a3f7

Browse files
Merge pull request #8 from peterwilsoncc/use-safe-remote-request
Use wp_safe_remote_post() to validate URLs.
2 parents 2665535 + c9e2b75 commit 145a3f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/namespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ function ping_indexnow( $post ) {
383383
}
384384

385385
// Ping IndexNow.
386-
$response = wp_remote_post(
386+
$response = wp_safe_remote_post(
387387
'https://api.indexnow.org/indexnow',
388388
$request
389389
);

0 commit comments

Comments
 (0)