WordPress: update_option, don’t update empty options?
More importantly, you should not let *untrusted, unsanitized $_POST data* into WordPress. But I think the issue is that you’re updating the option with the entire $_POST data, instead of the appropriate array key: update_option(‘eirepanel_inline_ads_options’, $_POST); Should probably be something like: update_option(‘eirepanel_inline_ads_options’, $_POST[‘eirepanel_inline_ads_options_name’]); Are your Plugin options discrete (one DB entry per option), or an … Read more