Please remove $_REQUEST['option_page'] in options_sanitize function
-
I’d like to call
update_option
programatically in a theme to updateRestrictTaxs_user_options
option. This doesn’t work, becauseoptions_sanitize
is doesn’t return sanitized values when no$_POST['option_page']
is set.For now I just disabled the checking of the
$_REQUEST['option_page']
value. See https://github.com/Sladix/Restrict-Taxonomies/pull/3 aswell. This way, I can update options programmatically.
- The topic ‘Please remove $_REQUEST['option_page'] in options_sanitize function’ is closed to new replies.