diff --git a/lib/admin-page.php b/lib/admin-page.php index 9cbde6c..99760ae 100644 --- a/lib/admin-page.php +++ b/lib/admin-page.php @@ -212,16 +212,16 @@ classicpress_show_migration_blocked_info();
delete the plugin.',
- 'switch-to-classicpress'
+ __( 'If no longer needed you can delete the plugin.',
+ 'switch-to-classicpress' )
),
esc_url( $delete_plugin_url )
); ?>
@@ -363,7 +363,7 @@ function classicpress_check_can_migrate() {
\n";
- printf(
- wp_kses_post(
- sprintf(
- __( 'It looks like you are using the %1$s theme. \n";
- printf(
- wp_kses_post(
- sprintf(
- // translators: active theme name
- __( 'It looks like you are using the theme %1$s, you should test the theme(s) you plan to use after migration and verify that they work correctly.',
- 'switch-to-classicpress' ),
- esc_html( $theme->name )
- )
- )
- );
+ printf( wp_kses_post(
+ // translators: active theme name
+ __( 'It looks like you are using the theme %1$s, you should test the theme(s) you plan to use after migration and verify that they work correctly.',
+ 'switch-to-classicpress' )
+ ), esc_html( $theme->name ) );
echo " \n";
- printf(
- wp_kses_post(
- sprintf(
- /* translators: 1: minimum supported PHP version, 2: maximum supported PHP version */
- __( 'ClassicPress supports PHP versions %1$s through %2$s.',
- 'switch-to-classicpress' ),
- esc_html( $cp_api_parameters['php']['min'] ), esc_html( $cp_api_parameters['php']['max_display'] )
- )
- )
- );
+ printf( wp_kses_post(
+ /* translators: 1: minimum supported PHP version, 2: maximum supported PHP version */
+ __( 'ClassicPress supports PHP versions %1$s through %2$s.',
+ 'switch-to-classicpress' )
+ ), esc_html( $cp_api_parameters['php']['min'] ), esc_html( $cp_api_parameters['php']['max_display'] ) );
echo "
- Please make a Complete Backup of your Site Files and Database before you continue!.', 'switch-to-classicpress' ) ); ?>
+ ' . __( 'Please make a Complete Backup of your Site Files and Database before you continue!', 'switch-to-classicpress' ) . ''
+ ); ?>
- After the Initial Migration, you must visit the Updates Page and Press the Re-Install Now button!
-
+
You are running WordPress version %3$s.',
'switch-to-classicpress'
@@ -528,40 +528,30 @@ function classicpress_check_can_migrate() {
$theme = wp_get_theme();
$theme_name = $cp_api_parameters['defaults']['theme_name'];
$theme_url = $cp_api_parameters['defaults']['theme_url'];
- $default_theme = "$theme_name";
- $theme_info = sprintf(
- __("The safest way of switching to ClassicPress is to install and activate the fully compatible theme %s.
You can Continue at Your Own Risk with your current theme, but you may experience issues if the theme is not compatible with ClassicPress.", 'switch-to-classicpress'),
- $default_theme
- );
-// THEME CHECKS DISABLED / WARN ONLY (Since v1.6)
+ $default_theme = ''.$theme_name.'';
+ // THEME CHECKS DISABLED / WARN ONLY (Since v1.6)
if ( $theme->name === $theme_name ) {
$preflight_checks['theme'] = true;
echo "\n " . wp_kses_post($icon_preflight_pass) . " \n\n
%1$s is the suggested theme to use when migrating from ClassicPress to WordPress.',
- 'switch-to-classicpress' ),
- esc_html( $theme->name )
- )
- )
- );
+ printf( wp_kses_post(
+ // translators: default theme name
+ __( 'It looks like you are using the %1$s theme.
%1$s is the suggested theme to use when migrating from ClassicPress to WordPress.',
+ 'switch-to-classicpress' )
+ ), esc_html( $theme->name ) );
} else {
$preflight_checks['theme'] = true;
echo "\n \n";
@@ -571,7 +561,7 @@ function classicpress_check_can_migrate() {
$plugin_headers = array( 'Name' => 'Plugin Name', 'RequiresWP' => 'Requires at least' );
$declared_incompatible_plugins = array();
$undeclared_compatibility_plugins = array();
- $plugin_info = __( "It looks like you have active plugins, you should test the plugins you plan to use after migration and verify they work correctly.", 'switch-to-classicpress' );
+ $plugin_info = __( 'It looks like you have active plugins, you should test the plugins you plan to use after migration and verify they work correctly.', 'switch-to-classicpress' );
if ( count($plugins) > 1 ) {
$preflight_checks['plugins'] = true;
@@ -581,9 +571,8 @@ function classicpress_check_can_migrate() {
);
echo "" . wp_kses_post($icon_preflight_warn) . " \n\n
\n";
- echo wp_kses_post(
- $theme_info
+ printf( wp_kses_post(
+ // translators: default theme
+ '' . __( 'The safest way of switching to ClassicPress is to install and activate the fully compatible theme %1$s.', 'switch-to-classicpress' ) . '
' .
+ __( 'You can Continue at Your Own Risk with your current theme, but you may experience issues if the theme is not compatible with ClassicPress.', 'switch-to-classicpress' )
+ ), wp_kses_post( $default_theme )
);
}
echo "
\n";
echo wp_kses_post(
- __( "The safest way of switching to ClassicPress is to (temporarily) deactivate your plugins, except Switch to ClassicPress.
-
You can Continue at Your Own Risk with active plugins, but you may experience issues if any plugins are not compatible with ClassicPress.",
- 'switch-to-classicpress' )
+ '' . __( 'The safest way of switching to ClassicPress is to (temporarily) deactivate your plugins, except Switch to ClassicPress.', 'switch-to-classicpress' ) . '
' .
+ __( 'You can Continue at Your Own Risk with active plugins, but you may experience issues if any plugins are not compatible with ClassicPress.', 'switch-to-classicpress' )
);
echo "\n";
} else {
@@ -603,34 +592,24 @@ function classicpress_check_can_migrate() {
) {
$preflight_checks['php_version'] = false;
echo "\n " . wp_kses_post($icon_preflight_fail) . " \n\n";
- $php_message = __( ", which prevents migrating your site to ClassicPress.", 'switch-to-classicpress' );
+ $php_message = __( ', which prevents migrating your site to ClassicPress.', 'switch-to-classicpress' );
} else {
$preflight_checks['php_version'] = true;
echo " \n \n";
@@ -702,8 +681,7 @@ function classicpress_check_can_migrate() {
echo "\n" . wp_kses_post($icon_preflight_pass) . " \n\n";
$php_message = ".";
}
echo "
\n";
- printf(
- wp_kses_post(
- sprintf(
- /* translators: current PHP version */
- __( 'You are using PHP version %s',
- 'switch-to-classicpress' ),
- PHP_VERSION
- ) . $php_message
- )
- );
+ printf( wp_kses_post(
+ /* translators: current PHP version */
+ __( 'You are using PHP version %s',
+ 'switch-to-classicpress' ) . $php_message
+ ), PHP_VERSION );
echo "\n
\n";
if ( $modified_files === false ) {
echo wp_kses_post(
- __( 'Unable to determine whether core files were modified.',
- 'switch-to-classicpress' )
+ '' . __( 'Unable to determine whether core files were modified.', 'switch-to-classicpress' ) . ''
);
echo "\n
\n";
esc_html_e(
@@ -785,16 +763,27 @@ function classicpress_show_migration_controls() {
$cp_cv = substr($cp_api_parameters['classicpress']['version'], 0, strpos($cp_api_parameters['classicpress']['version'], '+'));
?>
-
+
This is needed to complete the switch to ClassicPress and to insure you get the latest updates.', 'switch-to-classicpress' ) ); ?>
+ ' . __( 'After the Initial Migration, you must visit the Updates Page and Press the Re-Install Now button!', 'switch-to-classicpress' ) . '
' .
+ __( 'This is needed to complete the switch to ClassicPress and to insure you get the latest updates.', 'switch-to-classicpress' )
+ ); ?>