Skip to content

Commit a74e533

Browse files
committed
Fix cron test failing due to URL replacement mismatch
1 parent c598cd6 commit a74e533

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

features/cron.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ Feature: Manage WP-Cron events and schedules
380380
"""
381381
<?php
382382
add_filter( 'cron_request', static function ( $cron_request_array ) {
383-
$cron_request_array['url'] = str_replace( home_url(), 'http://localhost:8080', $cron_request_array['url'] );
383+
$cron_request_array['url'] = str_replace( site_url(), 'http://localhost:8080', $cron_request_array['url'] );
384384
$cron_request_array['args']['sslverify'] = false;
385385
return $cron_request_array;
386386
} );

0 commit comments

Comments
 (0)