get_all_admin_options(); //global settings $all_post_types = $aecomments->get_all_post_types(); //post types array //Update settings $updated = false; if (isset($_POST['update'])) { check_admin_referer('wp-ajax-edit-comments_admin-options'); $error = false; //Validate the comment time entered if (isset($_POST['comment_time'])) { $commentTimeErrorMessage = ''; $commentClass = 'error'; $minutes = absint( $_POST['comment_time'] ); if( $minutes < 1) { $commentTimeErrorMessage = __("Comment time must be greater than one minute.",'ajaxEdit'); $error = true; } else { $options['minutes'] = $minutes; $updated = true; } if (!empty($commentTimeErrorMessage)) { ?>