Skip to content

Commit 4633bbe

Browse files
committed
Add warning for discontinued Redux 3 files. Theme devs: PLEASE UPDATE YOUR THEMES.
1 parent 190b08b commit 4633bbe

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

ReduxCore/core/dashboard.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55
* @package Redux Framework
66
*/
77

8+
$theme = wp_get_theme();
9+
10+
// translators: %1$s: template path.
11+
echo '<div class="error"><p>' . sprintf( esc_html__( 'The Redux 3 file ReduxCore/core/dashboard.php is still in use by %1$s. Please contact the author of this theme (NOT Redux support, we have no control over this issue). They need to update their project to use Redux 4 and discontinue use of this file. It will soon be removed from Redux.', 'redux-framework' ), '<code>' . esc_html( $theme->get( 'Name' ) ) . '</code>' ) . '</p></div>';
12+
813
_deprecated_file( 'ReduxCore/core/dashboard.php', '4.3', '', 'This file has been discontinued and is no longer used in Redux 4. Please remove any references to it as it will be removed in future versions of Redux.' );

ReduxCore/core/enqueue.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55
* @package Redux Framework
66
*/
77

8+
$theme = wp_get_theme();
9+
10+
// translators: %1$s: template path.
11+
echo '<div class="error"><p>' . sprintf( esc_html__( 'The Redux 3 file ReduxCore/core/enqueue.php is still in use by %1$s. Please contact the author of this theme (NOT Redux support, we have no control over this issue). They need to update their project to use Redux 4 and discontinue use of this file. It will soon be removed from Redux.', 'redux-framework' ), '<code>' . esc_html( $theme->get( 'Name' ) ) . '</code>' ) . '</p></div>';
12+
813
_deprecated_file( 'ReduxCore/core/enqueue.php', '4.3', 'redux-core/inc/classes/class-redux-enqueue.php', 'This file has been discontinued and is no longer used in Redux 4. Please remove any references to it as it will be removed in future versions of Redux.' );

ReduxCore/core/newsflash.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
* @package Redux Framework
66
*/
77

8+
$theme = wp_get_theme();
9+
10+
// translators: %1$s: template path.
11+
echo '<div class="error"><p>' . sprintf( esc_html__( 'The Redux 3 file ReduxCore/core/newsflash.php is still in use by %1$s. Please contact the author of this theme (NOT Redux support, we have no control over this issue). They need to update their project to use Redux 4 and discontinue use of this file. It will soon be removed from Redux.', 'redux-framework' ), '<code>' . esc_html( $theme->get( 'Name' ) ) . '</code>' ) . '</p></div>';
12+
813
_deprecated_file( 'ReduxCore/core/newsflash.php', '4.3', '', 'This file has been discontinued and is no longer used in Redux 4. Please remove any references to it as it will be removed in future versions of Redux.' );
914

ReduxCore/core/panel.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55
* @package Redux Framework
66
*/
77

8+
$theme = wp_get_theme();
9+
10+
// translators: %1$s: template path.
11+
echo '<div class="error"><p>' . sprintf( esc_html__( 'The Redux 3 file ReduxCore/core/panel.php is still in use by %1$s. Please contact the author of this theme (NOT Redux support, we have no control over this issue). They need to update their project to use Redux 4 and discontinue use of this file. It will soon be removed from Redux.', 'redux-framework' ), '<code>' . esc_html( $theme->get( 'Name' ) ) . '</code>' ) . '</p></div>';
12+
813
_deprecated_file( 'ReduxCore/core/panel.php', '4.3', 'redux-core/inc/classes/class-redux-panel.php', 'This file has been discontinued and is no longer used in Redux 4. Please remove any references to it as it will be removed in future versions of Redux.' );

ReduxCore/core/required.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
* @package Redux Framework
66
*/
77

8+
$theme = wp_get_theme();
9+
10+
// translators: %1$s: template path.
11+
echo '<div class="error"><p>' . sprintf( esc_html__( 'The Redux 3 file ReduxCore/core/required.php is still in use by %1$s. Please contact the author of this theme (NOT Redux support, we have no control over this issue). They need to update their project to use Redux 4 and discontinue use of this file. It will soon be removed from Redux.', 'redux-framework' ), '<code>' . esc_html( $theme->get( 'Name' ) ) . '</code>' ) . '</p></div>';
12+
813
_deprecated_file( 'ReduxCore/core/required.php', '4.3', 'redux-core/inc/classes/class-redux-required.php', 'This file has been discontinued and is no longer used in Redux 4. Please remove any references to it as it will be removed in future versions of Redux.' );
914

ReduxCore/inc/fields/typography/field_typography.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
* @package Redux Framework
66
*/
77

8+
$theme = wp_get_theme();
9+
10+
// translators: %1$s: template path.
11+
echo '<div class="error"><p>' . sprintf( esc_html__( 'The Redux 3 file ReduxCore/inc/fields/typography/typography.php is still in use by %1$s. Please contact the author of this theme (NOT Redux support, we have no control over this issue). They need to update their project to use Redux 4 and discontinue use of this file. It will soon be removed from Redux.', 'redux-framework' ), '<code>' . esc_html( $theme->get( 'Name' ) ) . '</code>' ) . '</p></div>';
12+
813
_deprecated_file( 'ReduxCore/inc/fields/typography/typography.php', '4.3', 'redux-core/inc/fields/class-redux-typography.php', 'This file has been discontinued and is no longer used in Redux 4. Please remove any references to it as it will be removed in future versions of Redux.' );
914

0 commit comments

Comments
 (0)