Please remove $_REQUEST['option_page'] in options_sanitize function
-
I’d like to call
update_optionprogramatically in a theme to updateRestrictTaxs_user_optionsoption. This doesn’t work, becauseoptions_sanitizeis 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.