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')); } if (isset($_POST['submit'])) { $page_options = new thesis_page_options(); $page_options->update_options(); update_option('thesis_pages', $page_options); } wp_redirect(admin_url('admin.php?page=thesis-pages&updated=true')); }