Skip to content

Commit

Permalink
Support switching from WP 5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen committed Dec 21, 2018
1 parent 0fa37a6 commit f98462e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function classicpress_check_can_migrate() {
// More versions can be added after they are confirmed to work.
global $wp_version;
$wp_version_min = '4.9.0';
$wp_version_max = '5.0.1';
$wp_version_max = '5.0.2';
$wp_version_check_intro_message = sprintf( __(
/* translators: 1: minimum supported WordPress version, 2: maximum supported WordPress version */
'This plugin supports WordPress versions <strong>%1$s</strong> to <strong>%2$s</strong> (and some newer development versions).',
Expand All @@ -329,8 +329,8 @@ function classicpress_check_can_migrate() {
version_compare( $wp_version, $wp_version_max, 'gt' )
) &&
// ... and it's not a known development release.
! preg_match( '#^5\.0\.1-(alpha|beta)\b#', $wp_version ) &&
! preg_match( '#^5\.1-(alpha|beta)\b#', $wp_version )
! preg_match( '#^5\.0\.3-(alpha|beta|rc)\b#i', $wp_version ) &&
! preg_match( '#^5\.2-(alpha|beta|rc)\b#i', $wp_version )
) {
/**
* Filters whether to ignore the result of the WP version check.
Expand Down
2 changes: 1 addition & 1 deletion switch-to-classicpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/ClassicPress/ClassicPress-Migration-Plugin
* Description: Switch your WordPress installation to ClassicPress.
* Version: 0.4.0
* Tested up to: 5.0
* Tested up to: 5.0.2
* Author: ClassicPress
* Author URI: https://www.classicpress.net
* License: GPLv2 or later
Expand Down

0 comments on commit f98462e

Please sign in to comment.