Skip to content

Commit 2b55ecf

Browse files
committed
Remove old code that may be causing issues.
1 parent ac604bb commit 2b55ecf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

redux-core/inc/classes/class-redux-api.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ public static function set_defaults( string $opt_name = '' ) {
349349
* Filter 'redux/options/{opt_name}/global_variable'
350350
*
351351
* @param array $value option value to set global_variable with
352-
*/ global $$option_global;
352+
*/
353+
global $$option_global;
353354

354355
// phpcs:ignore WordPress.NamingConventions.ValidHookName
355356
$$option_global = apply_filters( 'redux/options/' . $opt_name . '/global_variable', self::$options_defaults[ $opt_name ] );

redux-core/inc/classes/class-redux-options-constructor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ private function set_global_variable( $core ): void {
226226

227227
// Last save key.
228228
if ( isset( $core->transients['last_save'] ) ) {
229-
$GLOBALS[ $options_global ]['REDUX_LAST_SAVE'] = $core->transients['last_save'] ?? '';
229+
//$GLOBALS[ $options_global ]['REDUX_LAST_SAVE'] = $core->transients['last_save'] ?? '';
230230
}
231231

232232
// Last compiler hook key.
233233
if ( isset( $core->transients['last_compiler'] ) ) {
234-
$GLOBALS[ $options_global ]['REDUX_LAST_COMPILER'] = $core->transients['last_compiler'] ?? '';
234+
//$GLOBALS[ $options_global ]['REDUX_LAST_COMPILER'] = $core->transients['last_compiler'] ?? '';
235235
}
236236
}
237237
}

0 commit comments

Comments
 (0)