Skip to content

Commit e7e6e02

Browse files
Guido07111975xxsimoxx
andauthored
Fix i18n (#124)
* Update admin-page.php * Update admin-page.php CPCS fix * Remove unneeded echo --------- Co-authored-by: xxsimoxx <simone@gieffeedizioni.it>
1 parent b592ecc commit e7e6e02

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

lib/admin-page.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function classicpress_ignore_wp_version_checkbox_callback() {
283283
'</a>'
284284
);
285285
}
286-
286+
287287
add_action( 'admin_init', 'classicpress_ignore_wp_version_settings_init' );
288288

289289
/**
@@ -368,9 +368,9 @@ function classicpress_check_can_migrate() {
368368
); ?>
369369
</p>
370370
<p>
371-
<?php echo wp_kses_post(
372-
__( 'In order to switch to ClassicPress, you\'ll need to <a href="https://move.wordpress.com/">move to a self-hosted WordPress site</a> first.',
373-
'switch-to-classicpress' )
371+
<?php esc_html_e(
372+
'In order to switch to ClassicPress, you\'ll need to move to a self-hosted WordPress site first.',
373+
'switch-to-classicpress'
374374
); ?>
375375
</p>
376376
</div>
@@ -771,7 +771,7 @@ function classicpress_show_migration_controls() {
771771
<p class="cp-migration-info">
772772
<?php echo wp_kses_post(
773773
'<strong class="cp-emphasis">' . __( 'Please make a Complete Backup of your Site Files and Database before you continue!', 'switch-to-classicpress' ) . '</strong>'
774-
); ?>
774+
); ?>
775775
</p>
776776
<p class="cp-migration-info">
777777
<?php echo wp_kses_post(
@@ -988,15 +988,21 @@ class="hidden"
988988
<?php esc_html_e( 'WARNING:', 'switch-to-classicpress' ); ?>
989989
</th>
990990
<td>
991+
<p>
992+
<?php esc_html_e(
993+
'If all requirements for your custom version have been met, then migration should complete.',
994+
'switch-to-classicpress'
995+
); ?>
996+
</p>
991997
<p>
992998
<?php echo wp_kses_post(
993-
__( '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>',
999+
__( 'That does not mean it will work in every case and <strong class="cp-emphasis">Older Versions may have Password or Security Issues!</strong>',
9941000
'switch-to-classicpress' )
9951001
); ?>
9961002
</p>
9971003
<p>
9981004
<?php echo wp_kses_post(
999-
__( '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>',
1005+
__( '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>',
10001006
'switch-to-classicpress' )
10011007
); ?>
10021008
</p>

0 commit comments

Comments
 (0)