reduxframework / redux-framework

Redux is a simple, truly extensible options framework for WordPress themes and plugins!
http://redux.io
Other
1.74k stars 583 forks source link

Problems with $args used as array and string in class Redux_WordPress_Data when you call a callback #3970

Closed Roby-Wan-Kenobi closed 1 year ago

Roby-Wan-Kenobi commented 1 year ago

would you please correct line 470 in redux-framework/redux-core/inc/classes/class-redux-wordpress-data.php from


if ( ! empty( $args ) && function_exists( $args ) ) {

to


if ( ! empty( $args ) && (is_string( $args )) && function_exists( $args ) ) {

thanks