Skip to content

Commit a56c981

Browse files
authored
Resolves WP 6.8 Beta 3 Errors #624 (#625)
* Resolves WP 6.8 Beta 3 Errors #624 * Update release date in changelog
1 parent 64def76 commit a56c981

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

boldgrid-backup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: Total Upkeep
1717
* Plugin URI: https://www.boldgrid.com/boldgrid-backup/
1818
* Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19-
* Version: 1.17.0
19+
* Version: 1.17.1
2020
* Author: BoldGrid
2121
* Author URI: https://www.boldgrid.com/
2222
* License: GPL-2.0+

includes/class-boldgrid-backup.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,32 @@ public function __construct() {
6767
$this->plugin_name = 'boldgrid-backup';
6868
$this->version = ( defined( 'BOLDGRID_BACKUP_VERSION' ) ? BOLDGRID_BACKUP_VERSION : '' );
6969

70+
add_filter( 'doing_it_wrong_trigger_error', array( $this, 'disable_jit_notices' ), 10, 3 );
71+
7072
$this->load_dependencies();
7173
$this->set_locale();
7274
$this->define_admin_hooks();
7375
}
7476

77+
/**
78+
* Disable Just In Time notices.
79+
*
80+
* @since 1.17.1
81+
*
82+
* @param bool $doing_it_wrong Whether to trigger the error for _doing_it_wrong.
83+
* @param string $function_name The function that was called.
84+
* @param string $message The message that was passed to _doing_it_wrong.
85+
*
86+
* @return bool $doing_it_wrong Whether to trigger the error for _doing_it_wrong.
87+
*/
88+
public function disable_jit_notices( $doing_it_wrong, $function_name, $message ) {
89+
// if the function is _load_textdomain_just_in_time, return false to prevent the error.
90+
if ( '_load_textdomain_just_in_time' === $function_name && false !== strpos( $message, 'boldgrid-backup' ) ) {
91+
return false;
92+
}
93+
return $doing_it_wrong;
94+
}
95+
7596
/**
7697
* Load the required dependencies for this plugin.
7798
*

readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Contributors: boldgrid, joemoto, imh_brad, rramo012, bgnicolepaschen, jamesros161, joe9663, weaponx13, jessecowens
33
Tags: backup, cloud backup, database backup, restore, wordpress backup
44
Requires at least: 5.0
5-
Tested up to: 6.7
5+
Tested up to: 6.8
66
Requires PHP: 5.4
7-
Stable tag: 1.17.0
7+
Stable tag: 1.17.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -132,6 +132,10 @@ Have a problem? First, take a look at our [Getting Started](https://www.boldgrid
132132

133133
== Changelog ==
134134

135+
= 1.17.1 =
136+
Release Date: Apr 14, 2025
137+
* Bug Fix: Fix _load_textdomain_just_in_time notices [#624](https://github.com/BoldGrid/boldgrid-backup/issues/624)
138+
135139
= 1.17.0 =
136140
Release Date: Mar 14, 2025
137141
* New Feature: Direct Transfer feature added for live beta [#611](https://github.com/BoldGrid/boldgrid-backup/pull/611)

0 commit comments

Comments
 (0)