Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions admin/card/class-amazon-s3.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public function init() {

$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Store Backups on Amazon S3"><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More' ) .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';

$this->icon = '<img src="' . plugin_dir_url( __FILE__ ) . '../image/remote/amazon-s3-logo.png"></img>';
Expand Down
4 changes: 2 additions & 2 deletions admin/card/class-database-encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public function init() {

$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Encrypt Your Database Backups"><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More' ) .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';

$this->icon = '<img src="' . plugin_dir_url( __FILE__ ) . '../image/db-lock-64.png" />';
Expand Down
4 changes: 2 additions & 2 deletions admin/card/class-dream-objects.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public function init() {

$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Store Backups on DreamHost DreamObjects"><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More' ) .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';

$this->icon = '<img src="' . plugin_dir_url( __FILE__ ) . '../image/remote/dreamhost-logo.png"></img>';
Expand Down
2 changes: 1 addition & 1 deletion admin/card/class-find-modified-files.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function init() {

$this->links = '
<a target="_blank" href=" ' . $url . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';
}
}
4 changes: 2 additions & 2 deletions admin/card/class-google-drive.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function init() {

$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Store Backups on Google Drive" ><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More' ) .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';
}
}
4 changes: 2 additions & 2 deletions admin/card/class-historical-versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function init() {

$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Restore Historical Versions of Files"><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More' ) .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';
}
}
4 changes: 2 additions & 2 deletions admin/card/class-history.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function init() {

$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="View Site Update History"><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More' ) .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';
}
}
4 changes: 2 additions & 2 deletions admin/card/class-one-click-restoration.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function init() {

$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Restore Files with One Click"><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More' ) .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';
}
}
4 changes: 2 additions & 2 deletions admin/card/class-plugin-editor-tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function init() {

$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Save copies of Plugin Files from the Plugin Editor"><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More' ) .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide' ) . '
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';
}
}
2 changes: 1 addition & 1 deletion admin/card/feature/class-remote-storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function init() {
wp_kses(
sprintf(
// translators: 1 An opening span tag, A list of remote backup storage locations (csv), its closing span tag.
__( 'Backups saved to: %1$s%2$s%3$s', 'boldgrid-bakcup' ),
__( 'Backups saved to: %1$s%2$s%3$s', 'boldgrid-backup' ),
'<span class="bglib-feature-value">',
esc_html( implode( ', ', $storage_locations ) ),
'</span>'
Expand Down
4 changes: 2 additions & 2 deletions admin/class-boldgrid-backup-admin-auto-rollback.php
Original file line number Diff line number Diff line change
Expand Up @@ -743,10 +743,10 @@ public function notice_backup_get() {

switch ( $this->core->pagenow ) {
case 'update-core.php':
$notice_text .= __( 'On this page you are able to update WordPress, Plugins, and Themes.' ) . ' ';
$notice_text .= __( 'On this page you are able to update WordPress, Plugins, and Themes.', 'boldgrid-backup' ) . ' ';
break;
case 'plugins.php':
$notice_text .= __( 'On this page you are able to update plugins.' ) . ' ';
$notice_text .= __( 'On this page you are able to update plugins.', 'boldgrid-backup' ) . ' ';
break;
}

Expand Down
12 changes: 6 additions & 6 deletions admin/class-boldgrid-backup-admin-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ public function add_menu_items() {
$lang = [
'backup_archive' => esc_html__( 'Backup Archives', 'boldgrid-backup' ),
'boldgrid_backup' => BOLDGRID_BACKUP_TITLE,
'get_premium' => esc_html__( 'Get Premium', 'boldgrid-bacukp' ),
'get_premium' => esc_html__( 'Get Premium', 'boldgrid-backup' ),
'preflight_check' => esc_html__( 'Preflight Check', 'boldgrid-backup' ),
'settings' => esc_html__( 'Settings', 'boldgrid-backup' ),
'tools' => esc_html__( 'Tools', 'boldgrid-backup' ),
Expand Down Expand Up @@ -1250,7 +1250,7 @@ private function backup_database() {
if ( ! $this->test->run_functionality_tests() ) {
// Display an error notice.
$this->notice->functionality_fail_notice();
return [ 'error' => esc_html__( 'Unable to create backup, functionality test failed.', 'boldgrid_backup' ) ];
return [ 'error' => esc_html__( 'Unable to create backup, functionality test failed.', 'boldgrid-backup' ) ];
}

// Get the backup directory path.
Expand Down Expand Up @@ -1781,7 +1781,7 @@ public function archive_files( $save = false, $dryrun = false ) {

// Determine how this backup was triggered.
if ( $this->pre_auto_update ) {
$info['trigger'] = esc_html__( 'Auto update', 'boldgrid-bakcup' );
$info['trigger'] = esc_html__( 'Auto update', 'boldgrid-backup' );
} elseif ( $this->doing_ajax && is_user_logged_in() ) {
$current_user = wp_get_current_user();
$info['trigger'] = $current_user->user_login . ' (' . $current_user->user_email . ')';
Expand Down Expand Up @@ -3149,13 +3149,13 @@ public function wp_ajax_restore() {
$message = [
'message' => esc_html__( 'The selected archive file has been successfully restored.', 'boldgrid-backup' ),
'class' => 'notice notice-success is-dismissible',
'header' => BOLDGRID_BACKUP_TITLE . ' - ' . esc_html__( 'Restoration complete' ),
'header' => BOLDGRID_BACKUP_TITLE . ' - ' . esc_html__( 'Restoration complete', 'boldgrid-backup' ),
];
} else {
$message = [
'message' => ! empty( $archive_info['error'] ) ? $archive_info['error'] : esc_html__( 'Unknown error when attempting to restore archive.', 'bolcgrid-backup' ),
'message' => ! empty( $archive_info['error'] ) ? $archive_info['error'] : esc_html__( 'Unknown error when attempting to restore archive.', 'boldgrid-backup' ),
'class' => 'notice notice-error is-dismissible',
'header' => BOLDGRID_BACKUP_TITLE . ' - ' . esc_html__( 'Restoration failed' ),
'header' => BOLDGRID_BACKUP_TITLE . ' - ' . esc_html__( 'Restoration failed', 'boldgrid-backup' ),
];
}
$this->notice->add_user_notice( $message['message'], $message['class'], $message['header'] );
Expand Down
4 changes: 2 additions & 2 deletions admin/class-boldgrid-backup-admin-cron-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function get_preflight_markup() {
$no = sprintf(
'<span class="warning">%1$s</span><br />%2$s',
__( 'No', 'boldgrid-backup' ),
__( 'Please contact your server administrator for assistance with troubleshooting.' )
__( 'Please contact your server administrator for assistance with troubleshooting.', 'boldgrid-backup' )
);

if ( $this->is_running() ) {
Expand All @@ -121,7 +121,7 @@ public function get_preflight_markup() {
$markup = $match_markup . $markup;

$markup .= '<p>' . __( 'Server offset', 'boldgrid-backup' ) . ': ' . $server_offset . '<br />';
$markup .= __( 'Cron offset' ) . ': ' . $cron_offset . '</p>';
$markup .= __( 'Cron offset', 'boldgrid-backup' ) . ': ' . $cron_offset . '</p>';

$markup .= sprintf( $run_test, esc_attr( __( 'Run test again', 'boldgrid-backup' ) ) );
}
Expand Down
4 changes: 2 additions & 2 deletions admin/class-boldgrid-backup-admin-time.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function get_timezone_info() {
$timezone_info['name'] = $tz->getName();

/* translators: 1: timezone name, 2: timezone abbreviation, 3: gmt offset */
$timezone_info['description'] = sprintf( __( 'Timezone is %1$s (%2$s), currently %3$s.' ), $tz_name, $timezone_info['abbr'], $formatted_gmt_offset );
$timezone_info['description'] = sprintf( __( 'Timezone is %1$s (%2$s), currently %3$s.', 'boldgrid-backup' ), $tz_name, $timezone_info['abbr'], $formatted_gmt_offset );
} else {
$timezone_info['description'] = '';
}
Expand All @@ -348,7 +348,7 @@ public function get_timezone_info() {
$timezone_info['abbr'] = sprintf( 'UTC%s', $formatted_gmt_offset );

/* translators: %s: UTC offset */
$timezone_info['description'] = sprintf( __( 'Timezone is %s.' ), $timezone_info['abbr'] );
$timezone_info['description'] = sprintf( __( 'Timezone is %s.', 'boldgrid-backup' ), $timezone_info['abbr'] );
}

// This set of code is not in core.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public function parse_error_info( $error_info ) {
$php_zip_set = $this->core->compressors->set_php_zip();

if ( $php_zip_set ) {
$messages[] = __( 'We have changed your compressor from PclZip to ZipArchive. Please try to create a backup again.' );
$messages[] = __( 'We have changed your compressor from PclZip to ZipArchive. Please try to create a backup again.', 'boldgrid-backup' );
}
}

Expand Down
6 changes: 3 additions & 3 deletions admin/partials/archives/add-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@
<div class="error_messages">

<p id="file_too_large" class="hidden">
<span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'The file you selected is too large.', 'boldgrid-bacup' ); ?>
<span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'The file you selected is too large.', 'boldgrid-backup' ); ?>
</p>

<p id="bad_filename" class="hidden">
<span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'Invalid file name. Please choose a valid backup file.', 'boldgrid-bacup' ); ?>
<span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'Invalid file name. Please choose a valid backup file.', 'boldgrid-backup' ); ?>
</p>

<p id="bad_extension" class="hidden">
<span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'Invalid file format. Please choose a .zip file.', 'boldgrid-bacup' ); ?>
<span class="dashicons dashicons-warning yellow"></span> <?php esc_html_e( 'Invalid file format. Please choose a .zip file.', 'boldgrid-backup' ); ?>
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion admin/partials/settings/auto-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ function get_plugins_update_markup( $auto_update_settings, $translations ) {
<td colspan=1>
<p style="position:relative;z-index=-1">' . esc_html__(
'This plugin was not installed through the WordPress Plugins Repository. If auto updates are enabled, they will take place immediately.',
'boldrid-backup'
'boldgrid-backup'
) . ' </p>
</td>
<td></td>
Expand Down
4 changes: 2 additions & 2 deletions admin/partials/settings/compressor.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
'<option value="%1$s" %2$s>%3$s</option>',
esc_attr( $level ),
$is_selected ? 'selected="selected"' : '',
$is_default ? $default_compression_level . ' ( ' . __( 'default' ) . ' )' : esc_html( $level )
$is_default ? $default_compression_level . ' ( ' . __( 'default', 'boldgrid-backup' ) . ' )' : esc_html( $level )
);
}

Expand All @@ -81,7 +81,7 @@
<div class="bg-box">
<div class="bg-box-top">
<?php esc_html_e( 'Compressor', 'boldgrid-backup' ); ?>
<span class="bgb-unbold">(<?php esc_html_e( 'Advanced', 'boldgrid-bacup' ); ?>)</span>
<span class="bgb-unbold">(<?php esc_html_e( 'Advanced', 'boldgrid-backup' ); ?>)</span>
<span class='dashicons dashicons-editor-help' data-id='compressor'></span>
</div>
<div class="bg-box-bottom">
Expand Down
6 changes: 3 additions & 3 deletions admin/partials/settings/folders.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
</tr>
</table>
',
/* 1 */ wp_kses( __( 'Use an asterisk(*) as a wildcard.', 'boldgrid-inspirations' ), $tags ),
/* 2 */ wp_kses( __( 'For example, <strong>wp-*</strong> will match <strong>wp-</strong>content, <strong>wp-</strong>admin, and <strong>wp-</strong>includes.', 'boldgrid-inspirations' ), $tags ),
/* 3 */ wp_kses( __( 'Use WPCORE to specify WordPress core files.', 'boldgrid-bacukp' ), $tags ),
/* 1 */ wp_kses( __( 'Use an asterisk(*) as a wildcard.', 'boldgrid-backup' ), $tags ),
/* 2 */ wp_kses( __( 'For example, <strong>wp-*</strong> will match <strong>wp-</strong>content, <strong>wp-</strong>admin, and <strong>wp-</strong>includes.', 'boldgrid-backup' ), $tags ),
/* 3 */ wp_kses( __( 'Use WPCORE to specify WordPress core files.', 'boldgrid-backup' ), $tags ),
/* 4 */ wp_kses( __( 'This includes the wp-admin and wp-includes folders, as well as all of the core WordPress files in the root directory of WordPress.', 'boldgrid-backup' ), $tags ),
/* 5 */ wp_kses( __( 'Begin a filter with a forward slash(/) to specify the file or folder must be in the root WordPress directory.', 'boldgrid-backup' ), $tags ),
/* 6 */ wp_kses( __( 'For example, <strong>/index.php</strong> will not match index.php files in subdirectories, such as wp-includes/index.php', 'boldgrid-backup' ), $tags ),
Expand Down
6 changes: 3 additions & 3 deletions admin/partials/transfers/destination.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@
%8$s
</div>
</div>',
esc_html__( 'Use this section if you want to select this WordPress installation as the destination.', 'boldgrid_backup' ),
esc_html__( 'Use this section if you want to select this WordPress installation as the destination.', 'boldgrid-backup' ),
esc_html(
sprintf(
// translators: 1: Plugin title.
__(
'Retrieve a download link from %1$s on another WordPress installation, paste the link in form below, and click "Upload". Once the download completes, you can either inspect the backup files and database or click "Restore".',
'boldgrid_backup'
'boldgrid-backup'
),
BOLDGRID_BACKUP_TITLE
)
),
esc_html__( 'Note: Performing a restoration in this installation will replace files and the database contents.', 'boldgrid_backup' ),
esc_html__( 'Note: Performing a restoration in this installation will replace files and the database contents.', 'boldgrid-backup' ),
esc_html__( 'Import from a download link:', 'boldgrid-backup' ),
esc_attr__( 'Download URL address', 'boldgrid-backup' ),
esc_attr__( 'Upload', 'boldgrid-backup' ),
Expand Down
6 changes: 3 additions & 3 deletions admin/partials/transfers/source.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@
<p>%4$s</p>
%5$s
</div>',
esc_html__( 'Use this section if you want to select this WordPress installation as the source.', 'boldgrid_backup' ),
esc_html__( 'Use this section if you want to select this WordPress installation as the source.', 'boldgrid-backup' ),
esc_html__(
'Choose a full backup in the list, click the "Get Download Link" button, and then click the "Copy Link" button. The download link is valid for a limited time and can be used to import the backed-up website into another WordPress installation using',
'boldgrid_backup'
'boldgrid-backup'
) . ' ' . BOLDGRID_BACKUP_TITLE . '.',
esc_html__( 'Note: Backup archives only existing in remote storage must first be downloaded to this web server in order to get a download link. Click the "View Details" for an archive and use the details page to download from remote storage.', 'boldgrid_backup' ),
esc_html__( 'Note: Backup archives only existing in remote storage must first be downloaded to this web server in order to get a download link. Click the "View Details" for an archive and use the details page to download from remote storage.', 'boldgrid-backup' ),
$encrypt_message,
$archive_list
);
2 changes: 1 addition & 1 deletion admin/remote/class-boldgrid-backup-admin-ftp-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function upload_post_archiving( $filepath ) {
* @since 1.6.0
*/
public function wp_ajax_download() {
$error = __( 'Unable to download backup from FTP', 'bolgrid-bakcup' );
$error = __( 'Unable to download backup from FTP', 'boldgrid-backup' );

$allowed_html = array(
'h2' => array(),
Expand Down