Skip to content
This repository was archived by the owner on May 29, 2020. It is now read-only.

Conversation

@bookdude13
Copy link
Contributor

Fixes #55
This also standardizes the messages between the Updates and the Plugins pages. Specific messages for when cron is disabled, the event is delayed, and when the event is scheduled in the future.

Note that the messages are displayed directly in the column. If they should instead be shown in the banner like other errors, or use the messaging like @afragen mentioned in #55 let me know and I can update.

@pbiron
Copy link
Collaborator

pbiron commented Mar 16, 2020

thanx @bookdude13 I'll look this over shortly.

Copy link
Collaborator

@pbiron pbiron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work as I expect it to, both on the plugins.php and update-core.php screens under all conditions (cron job not scheduled, cron disabled, scheduled update overdue and scheduled update in the future).

Can you make a couple of minor changes:

  1. the 1st 2 strings (for cron not scheduled/disabled) need the wp-autoupdates domain added.
  2. change Cron to WP-Cron in the text of the 2nd string, for consistency with the other strings that mention cron.
  3. move the new wp_autoupdates_get_update_message() function to the end of the file rather than having it at the beginning.

@bookdude13
Copy link
Contributor Author

Can do!

@pbiron pbiron merged commit c9b75b4 into audrasjb:master Mar 16, 2020
@audrasjb audrasjb added this to the 0.3.0 milestone Mar 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The notices that auto-update is "scheduled in X days" are incorrect if cron job is overdue

3 participants