adminOptionsName)) { die(''); } global $wpdb,$user_email; $WPAjaxEditComments = $this->get_admin_options(); //global settings $author_options = $this->get_user_options(); //user settings //Check to see if a user can access the panel if ( function_exists('current_user_can') && !current_user_can('manage_options') ) die("nope"); //Delete security keys if (isset($_POST['wpAJAXSecurityKeys'])) { if ($_POST['wpAJAXSecurityKeys'] == "true") { check_admin_referer('wp-ajax-edit-comments_admin-options'); //todo - update this to use updated post mechanism $query = "delete from $wpdb->postmeta where left(meta_value, 6) = 'wpAjax'"; @$wpdb->query($query); $query = "delete from $wpdb->posts where post_type = 'ajax_edit_comments'"; @$wpdb->query($query); //todo - possible sanity check here? ?>
localizationName) ?>
localizationName) ?>
localizationName);?>