We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
widgets-manager.php line 579
$conditional_function = create_function('', 'return '.cherry_condition($options_type[$id], $options[$id], $users[$id]).';');
Deprecated: Function create_function() is deprecated in ####/wp-content/plugins/cherry-plugin/includes/widgets/widgets-manager.php on line 577
The text was updated successfully, but these errors were encountered:
For anyone stumbling into this issue, just replace $conditional_function and $conditional_result declarations with these ones:
$conditional_function
$conditional_result
$conditional_function = function() use ($options_type, $options, $users) { return (boolean) cherry_condition($options_type[$id], $options[$id], $users[$id]); }; $conditional_result = $conditional_function();
Sorry, something went wrong.
It works. I had to add $id in use ($options_type, $options, $users, $id). It didn't work without (boolean). Thanks.
$id
use ($options_type, $options, $users, $id)
(boolean)
No branches or pull requests
widgets-manager.php line 579
$conditional_function = create_function('', 'return '.cherry_condition($options_type[$id], $options[$id], $users[$id]).';');
Deprecated: Function create_function() is deprecated in ####/wp-content/plugins/cherry-plugin/includes/widgets/widgets-manager.php on line 577
The text was updated successfully, but these errors were encountered: