Skip to content

Commit 063c21e

Browse files
committed
Add recurrence to the error message
1 parent 0184a4d commit 063c21e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/wp-includes/cron.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,9 @@ function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array(), $
422422
return new WP_Error(
423423
'invalid_schedule',
424424
sprintf(
425-
/* translators: %s is the interval encoded as JSON */
426-
__( 'Event schedule is invalid. Interval must be positive integer, but got: %s' ),
425+
/* translators: 1: the event schedule recurrence, 2: the interval encoded as JSON */
426+
__( 'Event schedule with recurrence "%$1s" does not exist or has is invalid. Interval must be positive integer, but got: %$2s' ),
427+
$recurrence,
427428
wp_json_encode( $interval )
428429
)
429430
);

0 commit comments

Comments
 (0)