Skip to content

Commit

Permalink
add file deprecation notice to old v3 shim files.
Browse files Browse the repository at this point in the history
Signed-off-by: Kev Provance <[email protected]>
  • Loading branch information
kprovance committed Mar 28, 2022
1 parent 33536cc commit e600bd9
Show file tree
Hide file tree
Showing 47 changed files with 290 additions and 62 deletions.
4 changes: 1 addition & 3 deletions ReduxCore/core/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.

echo null;
_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.' );
4 changes: 1 addition & 3 deletions ReduxCore/core/enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.

echo null;
_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.' );
3 changes: 1 addition & 2 deletions ReduxCore/core/newsflash.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.
_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.' );

echo null;
4 changes: 1 addition & 3 deletions ReduxCore/core/panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.

echo null;
_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.' );
3 changes: 1 addition & 2 deletions ReduxCore/core/required.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.
_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.' );

echo null;
3 changes: 1 addition & 2 deletions ReduxCore/inc/fields/typography/field_typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
* @package Redux Framework
*/

// Shim file for bad theme developers.
_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.' );

echo null;
3 changes: 1 addition & 2 deletions redux-core/core/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.
_deprecated_file( 'redux-core/core/dashboard.php', '4.3', '', 'This file has been removed and is no longer used in Redux 4. Please remove any references to it as it will be removed in future versions of Redux.' );

echo null;
4 changes: 1 addition & 3 deletions redux-core/core/enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.

echo null;
_deprecated_file( 'redux-core/core/enqueue.php', '4.3', 'redux-core/inc/classes/class-redux-enqueue.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );
3 changes: 1 addition & 2 deletions redux-core/core/newsflash.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.
_deprecated_file( 'redux-core/core/newsflash.php', '4.3', '', 'This file has been removed and is no longer used in Redux 4. Please remove any references to it as it will be removed in future versions of Redux.' );

echo null;
3 changes: 1 addition & 2 deletions redux-core/core/panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.
_deprecated_file( 'redux-core/core/panel.php', '4.3', 'redux-core/inc/classes/class-redux-panel.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

echo null;
3 changes: 1 addition & 2 deletions redux-core/core/required.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
* @package Redux Framework
*/

// Shim file for odd theme integrations.
_deprecated_file( 'redux-core/core/required.php', '4.3', 'redux-core/inc/classes/class-redux-required.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

echo null;
2 changes: 1 addition & 1 deletion redux-core/inc/classes/class-redux-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function template_file_check_notice() {

if ( $core_version && $developer_version && version_compare( $developer_version, $core_version, '<' ) && isset( $this->parent->args['dev_mode'] ) && ! empty( $this->parent->args['dev_mode'] ) ) {
?>
<div id="message" class="error redux-message">
<div id="message" class="error redux-message" style="display:block!important">
<p>
<strong><?php esc_html_e( 'Your panel has bundled copies of Redux Framework template files that are outdated!', 'redux-framework' ); ?></strong>&nbsp;&nbsp;<?php esc_html_e( 'Please update them now as functionality issues could arise.', 'redux-framework' ); ?>
</p>
Expand Down
9 changes: 8 additions & 1 deletion redux-core/inc/fields/ace_editor/field_ace_editor.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_ace_editor.php', '4.3', 'class-redux-ace-editor.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/background/field_background.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_background.php', '4.3', 'class-redux-background.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/border/field_border.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_border.php', '4.3', 'class-redux-border.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/button_set/field_button_set.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_button_set.php', '4.3', 'class-redux-button-set.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/checkbox/field_checkbox.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_checkbox.php', '4.3', 'class-redux-checkbox.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/color/field_color.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_color.php', '4.3', 'class-redux-color.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_color_gradient.php', '4.3', 'class-redux-color-gradient.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/color_rgba/field_color_rgba.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_color_rgba.php', '4.3', 'class-redux-color-rgba.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/date/field_date.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_date.php', '4.3', 'class-redux-date.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/dimensions/field_dimensions.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_dimensions.php', '4.3', 'class-redux-dimensions.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

8 changes: 7 additions & 1 deletion redux-core/inc/fields/divide/field_divide.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_divide.php', '4.3', 'class-redux-divide.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );
9 changes: 8 additions & 1 deletion redux-core/inc/fields/editor/field_editor.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_editor.php', '4.3', 'class-redux-editor.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/gallery/field_gallery.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_gallery.php', '4.3', 'class-redux-gallery.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/image_select/field_image_select.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_image_select.php', '4.3', 'class-redux-image-select.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/info/field_info.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_info.php', '4.3', 'class-redux-info.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/link_color/field_link_color.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_link_color.php', '4.3', 'class-redux-link-color.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/media/field_media.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_media.php', '4.3', 'class-redux-media.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/multi_text/field_multi_text.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_multi_text.php', '4.3', 'class-redux-multi-text.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/palette/field_palette.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_palette.php', '4.3', 'class-redux-palette.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/password/field_password.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_password.php', '4.3', 'class-redux-password.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/radio/field_radio.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_radio.php', '4.3', 'class-redux-radio.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/raw/field_raw.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_raw.php', '4.3', 'class-redux-raw.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/section/field_section.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_section.php', '4.3', 'class-redux-section.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/select/field_select.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_select.php', '4.3', 'class-redux-select.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/select_image/field_select_image.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_select_image.php', '4.3', 'class-redux-select-image.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/slider/field_slider.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_slider.php', '4.3', 'class-redux-slider.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

9 changes: 8 additions & 1 deletion redux-core/inc/fields/slides/field_slides.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
// Shim file for bad theme developers.
/**
* Silence is golden.
*
* @package Redux Framework
*/

_deprecated_file( 'field_slides.php', '4.3', 'class-redux-slides.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

Loading

0 comments on commit e600bd9

Please sign in to comment.