Skip to content

Commit 190b08b

Browse files
committed
Display noticed when Redux templates are out of date, and to contact theme dev.
1 parent 0df6d1e commit 190b08b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ public function get_template( string $file ) {
326326

327327
add_filter( 'deprecated_file_trigger_error', array( $this, 'tick_file_deprecate_warning' ) );
328328

329-
$file = str_replace( '-', '_', $file );
329+
$file = str_replace( '_', '-', $file );
330330

331-
_deprecated_file( esc_html( $file ), '4.0', esc_html( $old_file ), 'Please replace this outdated template with the current one from the Redux core.' );
331+
_deprecated_file( esc_html( $old_file ), '4.0', esc_html( $file ), 'Please replace this outdated template with the current one from the Redux core.' );
332332

333333
if ( file_exists( $this->template_path . $file ) ) {
334334
$path = $this->template_path . $file;
@@ -412,11 +412,11 @@ public function template_file_check_notice() {
412412
$core_version = Redux_Helpers::get_template_version( $this->original_path . $file );
413413
$developer_version = Redux_Helpers::get_template_version( $developer_theme_file );
414414

415-
if ( $core_version && $developer_version && version_compare( $developer_version, $core_version, '<' ) && isset( $this->parent->args['dev_mode'] ) && ! empty( $this->parent->args['dev_mode'] ) ) {
415+
if ( $core_version && $developer_version && version_compare( $developer_version, $core_version, '<' ) /* && isset( $this->parent->args['dev_mode'] ) && ! empty( $this->parent->args['dev_mode'] ) */ ) {
416416
?>
417417
<div id="message" class="error redux-message" style="display:block!important">
418418
<p>
419-
<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' ); ?>
419+
<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 ask the author of this theme to update them as functionality issues could arise.', 'redux-framework' ); ?>
420420
</p>
421421
</div>
422422
<?php

0 commit comments

Comments
 (0)