diff --git a/lib/admin-page.php b/lib/admin-page.php index 09d31cc..ccc519f 100644 --- a/lib/admin-page.php +++ b/lib/admin-page.php @@ -459,7 +459,7 @@ function classicpress_check_can_migrate() { echo "\n$icon_preflight_fail\n\n"; printf( __( /* translators: active theme name */ - 'It looks like you are using the %1$s theme. Unfortuantely it is incompatible with ClassicPress.', + 'It looks like you are using the %1$s theme. Unfortunately it is incompatible with ClassicPress.', 'switch-to-classicpress' ), $theme->name ); echo "
\n"; @@ -467,6 +467,27 @@ function classicpress_check_can_migrate() { 'Consider switching to a different theme, perhaps an older core theme, and try again.', 'switch-to-classicpress' ); + } elseif ( empty ( $theme->get( 'RequiresWP' ) ) ) { + $preflight_checks['theme'] = true; + echo "\n$icon_preflight_warn\n\n"; + printf( __( + /* translators: active theme name */ + 'It looks like you are using the %1$s theme. We cannot be sure it is compatible with ClassicPress because it is not declaring a minimum required version of WordPress.', + 'switch-to-classicpress' + ), $theme->name ); + } elseif ( version_compare( $theme->get( 'RequiresWP' ), '5.0' ) >= 0 ) { + $preflight_checks['theme'] = false; + echo "\n$icon_preflight_fail\n\n"; + printf( __( + /* translators: active theme name */ + 'It looks like you are using the %1$s theme. Unfortunately it seems it requires WordPress %2$s or above and it may therefore be incompatible with ClassicPress.', + 'switch-to-classicpress' + ), $theme->name, $theme->get( 'RequiresWP' ) ); + echo "
\n"; + _e( + 'Consider switching to a different theme, perhaps an older core theme, and try again.', + 'switch-to-classicpress' + ); } else { $preflight_checks['theme'] = true; echo "\n$icon_preflight_warn\n\n";