Skip to content

Commit b0414e9

Browse files
committed
Replace home_url
1 parent ba6f4f1 commit b0414e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cron.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Feature: Manage WP-Cron events and schedules
375375
"""
376376
<?php
377377
add_filter( 'cron_request', static function ( $cron_request_array ) {
378-
$cron_request_array['url'] = str_replace( 'https://example.com', 'http://localhost:8080', $cron_request_array['url'] );
378+
$cron_request_array['url'] = str_replace( home_url(), 'http://localhost:8080', $cron_request_array['url'] );
379379
$cron_request_array['args']['sslverify'] = false;
380380
return $cron_request_array;
381381
} );

0 commit comments

Comments
 (0)