Support » Plugin: WP Crontrol » Wrong/irritating selected option in recurrence dropdown

  • There seems to be a mismatch in cron events edit view:

    I added an hourly event and a custom event with a recurrence of 5 minutes. In the cron events list, the correct recurrences are displayed for both (column ‘Recurrence’ – ‘1 hour’ / ‘5 minutes’). Yet, if I ‘edit’ the custom-recurrence event, in the tab ‘Modify Cron Event’, the dropdown says ‘Non-repeating’ instead of ‘5 minutes’ or even ‘custom’. I find that a bit confusing, since the correct recurrence is displayed as selected option for standard recurrences (like 1 hour).

    I suggest these solutions:
    A) You could disable the select option in order to make the outpout correct without allowing to save with that custom recurrence.
    B) Do not pre-select the recurrence of the event, instead display ‘Choose a (new) recurrence’ as default.

    Anyway, thanks for the very useful plugin, btw.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report. I’ll take a look and see if I can identify the problem.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    @jasie Did you delete the custom cron schedule after scheduling an event with it? ie. does your custom schedule still exist?

    I did not use your plugin to create an event, I did it in my plugin with wp_schedule_event() (with a custom recurrence). Hence, I had no need to create a custom recurrence via your plugin.
    The event gets only deleted on uninstallation of the plugin. I “just” use your plugin to check on all scheduled events and to manually execute mine. I just checked what I could do, if I use your event-edit.
    My custom event still exists. Would you like a screenshot?

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    What’s the value you’re using for the recurrence? It sounds like your custom recurrence isn’t being picked up by WP Crontrol.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Wrong/irritating selected option in recurrence dropdown’ is closed to new replies.