You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updated Checks and Warnings:
Warn if any plugins active
Warn if theme not 2017
Show Modified Files
On branch master
Changes to be committed:
modified: lib/admin-page.php
* Improve checks and warnings
Changes to be committed:
modified: lib/admin-page.php
* Comment out plugins found
Changes to be committed:
modified: lib/admin-page.php
* - Change Plugin and Theme Checks to explain safest method, but only warn if not followed
- Change Core File check to show any modified files on the page rather than in the console
- Correct links and update verbiage as needed
- bump to v1.5.3
Changes to be committed:
modified: README.md
modified: lib/admin-page.php
modified: switch-to-classicpress.php
* - Display override function info for unsupported WP versions when applicable
Changes to be committed:
modified: README.md
modified: lib/admin-page.php
* Changes proposed on Zulip
* Fix Since
* - Remove code no longer needed
Changes to be committed:
modified: lib/admin-page.php
---------
Co-authored-by: xxsimoxx <simone@gieffeedizioni.it>
'For support, suggestions for improvement, or general discussion about how the plugin works, visit us in our <a href="%1$s">support forum</a> or <a href="%2$s">Zulip chat</a>.',
/* translators: 1: minimum supported WordPress version, 2: maximum supported WordPress version */
406
406
$wp_version_check_intro_message = sprintf( __(
407
-
'This plugin supports WordPress versions <strong>%1$s</strong> to <strong>%2$s</strong> (and some newer development versions).',
407
+
'This plugin supports WordPress versions <strong>%1$s</strong> to <strong>%2$s</strong> (and some newer development versions).<br>You are running WordPress version <strong>%3$s</strong>.',
$theme_info = "<li>The safest way of switching to ClassicPress is by (temporarily) installing and activating the fully compatible theme <strong>$default_theme</strong>.</li>";
496
-
$fse_info = "<br>Block and Full Screen Editor themes may work in ClassicPress, but you will have to test the theme(s) you plan to use and verify that they work correctly.";
'It looks like you are using the <strong>%1$s</strong> theme. Unfortunately, %1$s is probably using FSE functions and may not be compatible with ClassicPress.%2$s',
$theme_info = "<strong>The safest way of switching to ClassicPress is to install and activate the fully compatible theme <em>$default_theme</em>.</strong>
489
+
<br>You can <strong class='cp-emphasis'>Continue at Your Own Risk</strong> with your current theme, but you may experience issues if the theme is not compatible with ClassicPress.";
'It looks like you are using the <strong>%1$s</strong> theme. We are not aware of any incompatibilities between %1$s and ClassicPress.',
502
+
// translators: active theme name
503
+
'It looks like you are using the theme <strong>%1$s</strong>, you should test the theme(s) you plan to use after migration and verify that they work correctly.',
541
504
'switch-to-classicpress'
542
505
), esc_html( $theme->name ) );
543
506
echo"<br>\n";
@@ -548,104 +511,32 @@ function classicpress_check_can_migrate() {
$plugin_info = "<br>Plugins that require Blocks might not work in ClassicPress, you should test the plugins you plan to use and verify they work correctly.";
557
-
558
-
// Start by checking if plugins have declared they require WordPress 5.0 or higher
559
-
foreach ( $pluginsas$plugin ) {
560
-
if ( in_array( $plugin, $cp_api_parameters['plugins'] ) ) {
'We have detected one or more plugins that may require Blocks or fail to declare a compatible WordPress version.'.$plugin_info,
525
+
$plugin_info,
630
526
'switch-to-classicpress'
631
527
);
632
528
echo"<br>\n";
633
529
echowp_kses_post(
634
-
'<li>The safest way of switching to ClassicPress is to (temporarily) deactivate the following plugin(s):</li>',
530
+
"<strong>The safest way of switching to ClassicPress is to (temporarily) deactivate your plugins, except <em>Switch to ClassicPress</em>.</strong>
531
+
<br>You can <strong class='cp-emphasis'>Continue at Your Own Risk</strong> with active plugins, but you may experience issues if any plugins are not compatible with ClassicPress.",
635
532
'switch-to-classicpress'
636
533
);
637
-
//echo "<br>\n";
638
-
/* translators: List of conflicting plugin names */
'We are not aware that any of your active plugins are incompatible with ClassicPress.',
539
+
'It looks like you have no plugins or have deactived plugins other than Switch to ClassicPress, this is the safest way to migrate your site to ClassicPress.',
649
540
'switch-to-classicpress'
650
541
);
651
542
}
@@ -741,7 +632,7 @@ function classicpress_check_can_migrate() {
741
632
}
742
633
echo"<p>\n";
743
634
esc_html_e(
744
-
'Your WordPress core files will be overwritten.',
635
+
'WordPress core files will be overwritten during the migration.',
745
636
'switch-to-classicpress'
746
637
);
747
638
echo"\n<br>\n";
@@ -763,17 +654,15 @@ function classicpress_check_can_migrate() {
763
654
} else {
764
655
echo'<strong class="cp-emphasis">';
765
656
esc_html_e(
766
-
'Modified core files detected. These customizations will be lost.',
657
+
'Modified core files detected. These customizations will be lost:',
767
658
'switch-to-classicpress'
768
659
);
769
660
echo"</strong>\n<br>\n";
770
-
echowp_kses_post(
771
-
'If you have JavaScript enabled, you can see a list of modified files <strong>in your browser console</strong>.',
'If all requirements for your custom version have been met, then migration should complete.</p><p>That does not mean it will be successful in every case and<strong class="cp-emphasis"> Older Versions May Not be Secure!</strong></p>',
928
+
'If all requirements for your custom version have been met, then migration should complete.</p><p>That does not mean it will work in every case and<strong class="cp-emphasis"> Older Versions may have Password or Security Issues!</strong></p>',
1040
929
'switch-to-classicpress'
1041
930
); ?>
1042
931
</p>
1043
932
<p>
1044
933
<?phpechowp_kses_post(
1045
-
'Please, make a <strong class="cp-emphasis">Complete Backup of your Site</strong> before using this tool<strong class="cp-emphasis"> At Your Own Risk!</strong>',
934
+
'Please, make a <strong class="cp-emphasis">Complete Backup of your Site Files and Database</strong> before using this tool<strong class="cp-emphasis"> At Your Own Risk!</strong>',
0 commit comments