reduxframework / redux-framework

Redux is a simple, truly extensible options framework for WordPress themes and plugins!

Home Page:http://redux.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Core using depreciated method

shazzad opened this issue · comments

When WP_DEBUG is enabled, i see following error in my WordPress site:

( ! ) Deprecated: Function Redux::setSections is deprecated since version Redux 4.3! Use Redux::get_sections( $opt_name, $sections ) instead. in

Following are my findings:

1. Follow depreciation method reference is wrong.

_deprecated_function( __CLASS__ . '::' . __FUNCTION__, 'Redux 4.3', 'Redux::get_sections( $opt_name, $sections )' );

It should be - Redux::set_sections( $opt_name, $sections )

2. Core using the depreciated method here.

Correct method should be Redux::set_sections(

Thanks.

Fixes applied. Thanks!