From: Steve Sutton Date: Wed, 26 Nov 2014 16:10:31 +0000 (-0500) Subject: no delete at this time X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=21ab3b99b20802fe42ecdec3ee7971cb8c1ec553;p=WP-Plugins%2Fglm-members.git no delete at this time --- diff --git a/models/database.php b/models/database.php index 569fdef..e06a967 100644 --- a/models/database.php +++ b/models/database.php @@ -44,10 +44,6 @@ class glm_members_models_database GLM_MEMBERS_PLUGIN_FILE_PATH, array($this, 'install') ); - register_uninstall_hook( - GLM_MEMBERS_PLUGIN_FILE_PATH, - array($this, 'delete') - ); add_action('plugins_loaded', array($this, 'glm_members_update_db_check')); $this->membersTable = $this->wpdb->prefix . GLM_MEMBERS_MEMBER_TABLE; @@ -87,12 +83,4 @@ class glm_members_models_database } } - public function delete() - { - $sql = " - DROP TABLE IF EXISTS {$this->membersTable} "; - $this->wpdb->query($sql); - delete_option(GLM_MEMBERS_VRS_OPTION_NAME); - } - }