function save_options() { if (!current_user_can('edit_themes')) { wp_die(__('Easy there, homey. You don’t have admin privileges to access theme options.', 'thesis')); } check_admin_referer('thesis-update-site', '_wpnonce-thesis-update-site'); #wp if (isset($_POST['submit'])) { $site_options = new thesis_site_options(); $site_options->get_options(); $site_options->update_options(); update_option('thesis_options', $site_options); } wp_redirect(admin_url('admin.php?page=thesis-options&updated=true')); }