diff --git a/admin/constants.php b/admin/constants.php index 330e47ef..914b0420 100644 --- a/admin/constants.php +++ b/admin/constants.php @@ -6,7 +6,19 @@
define', '' . __( 'Constants', 'backupwordpress' ) . '', 'wp-config.php', '' . __( 'The Codex can help', 'backupwordpress' ) . '', '' . __( 'Constants', 'backupwordpress' ) . '' ); ?>
The Codex can help. Defined constants will be highlighted.', 'backupwordpress' ),
+ array(
+ 'a' => array(
+ 'href' => array(),
+ ),
+ )
+ ),
+ 'wp-config.php',
+ 'https://codex.wordpress.org/Editing_wp-config.php'
+ ); ?>
|
- ' . esc_html( HMBKP_PATH ) . '' ); ?> +' . esc_html( HMBKP_PATH ) . '' + ); ?> -' . esc_html( Path::get_path() ) . '' ); ?> ' . esc_html( Path::get_path() ) . '',
+ " |
@@ -33,10 +54,19 @@
- ' . esc_html( HMBKP_MYSQLDUMP_PATH ) . '' ); ?> +' . esc_html( HMBKP_MYSQLDUMP_PATH ) . '' + ); ?> -mysqldump', ' mysqldump',
+ " |
@@ -49,10 +79,19 @@
- ' . esc_html( HMBKP_ZIP_PATH ) . '' ); ?> +' . esc_html( HMBKP_ZIP_PATH ) . '' + ); ?> -zip', ' zip',
+ " |
@@ -65,10 +104,18 @@
- ' . esc_html( HMBKP_EXCLUDE ) . '' ); ?> +' . esc_html( HMBKP_EXCLUDE ) . '' + ); ?> - define( 'HMBKP_EXCLUDE', '/wp-content/uploads/, /stats/, .svn/, *.txt' );" + ); ?> |
@@ -81,10 +128,19 @@
- ' . esc_html( HMBKP_CAPABILITY ) . '' ); ?> +' . esc_html( HMBKP_CAPABILITY ) . '' + ); ?> -add_menu_page', ' manage_options',
+ " |
@@ -97,10 +153,19 @@
- ' . esc_html( HMBKP_ROOT ) . '' ); ?> +' . esc_html( HMBKP_ROOT ) . '' + ); ?> -' . Path::get_home_path() . '' ); ?> ' . esc_html( Path::get_home_path() ) . '',
+ " |
@@ -113,17 +178,26 @@
- ' . esc_html( HMBKP_SCHEDULE_TIME ) . '' ); ?> +' . esc_html( HMBKP_SCHEDULE_TIME ) . '' + ); ?> -23:00' ); ?> 23:00',
+ " |
$service ) :
- echo wp_kses_post( call_user_func( array( $service, 'constant' ) ) );
+ call_user_func( array( $service, 'constant' ) );
endforeach; ?>
' . __( 'What if I want to back up my site to another destination?', 'backupwordpress' ) . '
' . - '' . __( 'BackUpWordPress Pro supports Dropbox, Google Drive, Amazon S3, Rackspace, Azure, DreamObjects and FTP/SFTP. Check it out here: https://bwp.hmn.md', 'backupwordpress' ) . '
' . + '' . sprintf( + __( 'BackUpWordPress Pro supports Dropbox, Google Drive, Amazon S3, Rackspace, Azure, DreamObjects and FTP/SFTP. Check it out at bwp.hmn.md', 'backupwordpress' ), + 'https://bwp.hmn.md/?utm_source=wordpress-org&utm_medium=plugin-page&utm_campaign=freeplugin' + ) . '
' . '' . __( 'How do I restore my site from a backup?', 'backupwordpress' ) . '
' . - '' . __( 'You need to download the latest backup file either by clicking download on the backups page or via FTP. Unzip the files and upload all the files to your server overwriting your site. You can then import the database using your hosts database management tool (likely phpMyAdmin).', 'backupwordpress' ) . '
' . __( 'You need to download the latest backup file either by clicking download on the backups page or via FTP. Unzip the files and upload all the files to your server overwriting your site. You can then import the database using your hosts database management tool (likely phpMyAdmin).', 'backupwordpress' ) . '
' . - '' . __( 'See this guide for more details - How to restore from backup.', 'backupwordpress' ) . '
' . + '' . sprintf( + __( 'See this guide for more details - How to restore from backup.', 'backupwordpress' ), + 'https://bwp.hmn.md/support-center/restore-backup/' + ) . '
' . '' . __( 'Does BackUpWordPress back up the backups directory?', 'backupwordpress' ) . '
' . @@ -21,7 +27,7 @@ '' . __( 'I\'m not receiving my backups by email', 'backupwordpress' ) . '
' . - '' . __( 'Most servers have a filesize limit on email attachments, it\'s generally about 10mb. If your backup file is over that limit, it won\'t be sent attached to the email. Instead, you should receive an email with a link to download the backup. If you aren\'t even receiving that, then you likely have a mail issue on your server that you\'ll need to contact your host about.', 'backupwordpress' ) . '
' . + '' . __( 'Most servers have a file size limit on email attachments, it\'s generally about 10mb. If your backup file is over that limit, it won\'t be sent attached to the email. Instead, you should receive an email with a link to download the backup. If you aren\'t even receiving that, then you likely have a mail issue on your server that you\'ll need to contact your host about.', 'backupwordpress' ) . '
' . '' . __( 'How many backups are stored by default?', 'backupwordpress' ) . '
' . @@ -43,7 +49,11 @@ 'define( \'ALTERNATE_WP_CRON\', true ); to your wp-config.php. Do automatic backups work?', 'backupwordpress' ) . 'define( 'ALTERNATE_WP_CRON', true );",
+ 'wp-config.php'
+ ) . '
@@ -311,12 +311,12 @@
$size = size_format( $size );
}
- /* translators: 1: Excluded size 2: Overall directory/file size */
- printf(
- esc_html__( '%1$s of %2$s', 'backupwordpress' ),
+ echo esc_html( sprintf(
+ /* translators: 1: Excluded size 2: Overall site size */
+ __( '%1$s of %2$s', 'backupwordpress' ),
$excluded_size,
- $size
- );
+ size_format( $size )
+ ) );
elseif ( ! $is_unreadable ) :
echo esc_html( size_format( $size ) );
diff --git a/admin/schedule-form.php b/admin/schedule-form.php
index 4a79ca98..f6989729 100644
--- a/admin/schedule-form.php
+++ b/admin/schedule-form.php
@@ -2,6 +2,8 @@
namespace HM\BackUpWordPress;
+global $wp_locale;
+
?>
@@ -74,7 +76,7 @@
@@ -103,13 +105,13 @@