Skip to content

Commit

Permalink
Merge pull request #6 from iamsayan/develop
Browse files Browse the repository at this point in the history
Update minimum version.
  • Loading branch information
iamsayan authored Jun 24, 2022
2 parents 8f54cbe + 7b2612a commit 38e3fcf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Release Date: 24th June, 2022

* Updated: Action Scheduler library to v3.4.2.
* Fixed: Various bugs and PHP errors.
* Minimum WordPress supported version is now 5.2.0.
* Tested with WordPress 6.0.

## 1.0.5
Expand Down
4 changes: 2 additions & 2 deletions includes/Base/AdminNotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public function install_notice() {
global $wp_version;

// Show a warning to sites running PHP < 5.6
if ( version_compare( $wp_version, '5.1.0', '<' ) ) {
if ( version_compare( $wp_version, '5.2.0', '<' ) ) {
deactivate_plugins( $this->plugin );
/* translators: %s: Plugin Name */
echo '<div class="error"><p>' . sprintf( __( 'Your version of WordPress is below the minimum version of WordPress required by %s plugin. Please upgrade WordPress to 5.1.0 or later.', 'migrate-wp-cron-to-action-scheduler' ), $this->name ) . '</p></div>';
echo '<div class="error"><p>' . sprintf( __( 'Your version of WordPress is below the minimum version of WordPress required by %s plugin. Please upgrade WordPress to 5.2.0 or later.', 'migrate-wp-cron-to-action-scheduler' ), $this->name ) . '</p></div>';
return;
}

Expand Down
4 changes: 2 additions & 2 deletions includes/Core/MigrateActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function register() {
*/
public function migrate_old_crons() {
global $wp_version;
if ( version_compare( $wp_version, '5.1.0', '<' ) ) {
if ( version_compare( $wp_version, '5.2.0', '<' ) ) {
return;
}

Expand Down Expand Up @@ -70,7 +70,7 @@ public function migrate_old_crons() {
*/
public function regenerate_crons() {
global $wpdb, $wp_version;
if ( version_compare( $wp_version, '5.1.0', '<' ) ) {
if ( version_compare( $wp_version, '5.2.0', '<' ) ) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions languages/migrate-wp-cron-to-action-scheduler.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-06-24T11:47:00+00:00\n"
"POT-Creation-Date: 2022-06-24T11:50:41+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.5.0\n"
"X-Domain: migrate-wp-cron-to-action-scheduler\n"
Expand Down Expand Up @@ -52,7 +52,7 @@ msgstr ""

#. translators: %s: Plugin Name
#: includes/Base/AdminNotice.php:42
msgid "Your version of WordPress is below the minimum version of WordPress required by %s plugin. Please upgrade WordPress to 5.1.0 or later."
msgid "Your version of WordPress is below the minimum version of WordPress required by %s plugin. Please upgrade WordPress to 5.2.0 or later."
msgstr ""

#. translators: %s: Plugin Name
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Release Date: 24th June, 2022

* Updated: Action Scheduler library to v3.4.2.
* Fixed: Various bugs and PHP errors.
* Minimum WordPress supported version is now 5.2.0.
* Tested with WordPress 6.0.

= 1.0.5 =
Expand Down

0 comments on commit 38e3fcf

Please sign in to comment.