You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
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?
Since WP 4.7.0 register_setting's 3rd parameter is an array. Please update it in the code...
The text was updated successfully, but these errors were encountered: