Reset feed data'; $return .= '
You may be having trouble uploading new data from a file you have been using. The following fixes may help
'; $return .= 'This addon keeps a record of every single post generated by the feeds. This prevents the same unwanted item being created again if you manually choose to delete posts.
'; $return .= 'Below you can erase this data on a per feed basis.
'; $return .= 'Please create a database backup before you delete this data.
'; $return .= 'Execution time : ".round($elapsed, 2). " seconds
"; } // end isset($_POST['submitDeleteFeed']) if (isset($_POST['deleteFeedPosts'])) { // ESSENTIAL! Do not leave this out. Needs to come first $form = self::$processing->reset_form_processing_sanitisation($_POST); $startTime = microtime(TRUE); $this->db_delete_posts($form); $endTime = microtime(TRUE); $elapsed = $endTime - $startTime; $return .= "Execution here: ".round($elapsed, 2). " seconds"; //delete_posts } // end isset($_POST['deleteFeedPostsForm'])) if (isset($_POST['deleteAllTracking'])) { $form = self::$processing->reset_form_processing_sanitisation($_POST); $startTime = microtime(TRUE); $this->db_delete_all_tracking(); $endTime = microtime(TRUE); $elapsed = $endTime - $startTime; $return .= "Execution time : ".round($elapsed, 2). " seconds"; } if (isset($_POST['wipeRevisions'])) { $form = self::$processing->reset_form_processing_sanitisation($_POST); $startTime = microtime(TRUE); $this->db_delete_revisions(); $endTime = microtime(TRUE); $elapsed = $endTime - $startTime; $return .= "Execution time : ".round($elapsed, 2). " seconds"; } $return .= 'It may be the case that the tracking data has grown to large. Reset it by clicking below.
'; $return .= $this->delete_tracking_data(); $return .= 'This is to ensure that all meta data is wiped. When I was creating this plugin I was deleting posts but I found the revisions were still lingering in the database. This was causing problems.
'; $return .= 'It may have just because of my hacking that caused the issue but neverless you can wipe all revisions created by posts from feeds with a single swipe of this button.
'; $return .= 'Please create a database backup before you mass delete these posts.
'; echo $return; $form = array( 'method' => 'post', 'action' => '#wpwrap', 'enctype' => 'application/x-www-form-urlencoded', 'description' => '', 'option' => FALSE, 'submit' => 'wipeRevisions', 'submtiTwo' => NULL, 'synchronize' => NULL, 'tracking' => NULL, ); self::$form_builder->create_form($form); } /** * Reset_Form::delete_feed_details_cats() * * @return */ protected function delete_feed_details_cats() { $cats = $this->db_find_all_post_cats(); $form = ''; return $form; } /** * Reset_Form::delete_tracking_data() * * @return */ protected function delete_tracking_data() { $form = ''; return $form; } /** * Reset_Form::delete_feed_posts() * * @return */ protected function delete_feed_posts() { $cats = $this->db_find_all_post_cats(); $form = ''; return $form; } /** * Reset_Form::reset_form_facade() * * @return */ public function reset_form_facade() { $this->reset(); } }