register_setting 3rd argument is array since 4.7.0
Since WP 4.7.0 register_setting's 3rd parameter is an array. Please update it in the code...
it's already passed as array line 153 register_setting( $section['id'], $section['id'], array( $this, 'sanitize_options' ) );
maybe you should be more specific.
@roidayan I think you should read the question correctly. See, on that line 153 the 3rd parameter is a callback. But as per the wordpress doc it should be an array. Within that array only you should have a key as 'sanitize_callback'. if you just send the callback function as third parameter we cant have type and other keys of array.
https://developer.wordpress.org/reference/functions/register_setting/
I see what you mean. Not sure it's important at all. It is backward compatible to allow passing only a callback. And then it will be treated as an array with a sanitize_callback key only. Do you hit any issue?