Changeset 1969884
- Timestamp:
- 11/06/2018 02:28:01 PM (7 years ago)
- Location:
- wp-slack-logbot/trunk
- Files:
-
- 2 edited
-
class-wp-slack-logbot.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-slack-logbot/trunk/class-wp-slack-logbot.php
r1968990 r1969884 8 8 * Text Domain: wp-slack-logbot 9 9 * Domain Path: /languages 10 * Version: 1. 010 * Version: 1.1 11 11 * 12 12 * @package Wp_Slack_Logbot … … 44 44 * @var string $slack_logbot_version 45 45 */ 46 var $slack_logbot_version = '1. 0';46 var $slack_logbot_version = '1.1'; 47 47 48 48 /** … … 61 61 */ 62 62 public function register() { 63 // activation hook. 63 64 register_activation_hook( __FILE__, array( $this, 'install' ) ); 65 // load translation file. 64 66 load_plugin_textdomain( dirname( plugin_basename( __FILE__ ) ), false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 67 // uninstall hook. 68 register_uninstall_hook( __FILE__, 'WP_Slack_Logbot::uninstall' ); 65 69 } 66 70 … … 100 104 add_option( 'slack_logbot_version', $this->slack_logbot_version ); 101 105 } 106 107 /** 108 * Uninstall plugin. 109 */ 110 public static function uninstall() { 111 global $wpdb; 112 $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}slack_logbot" ); 113 114 delete_option( 'slack_logbot_version' ); 115 delete_option( 'wp-slack-logbot-bot-user-oauth-access-token' ); 116 } 102 117 } 103 118 -
wp-slack-logbot/trunk/readme.txt
r1969149 r1969884 1 === W pSlack Logbot ===1 === WP Slack Logbot === 2 2 Contributors: ryotsun 3 3 Donate link: … … 6 6 Tested up to: 5.1-alpha-20181015.143023 7 7 Requires PHP: 5.3 8 Stable tag: 1. 0.18 Stable tag: 1.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 78 78 == Changelog == 79 79 80 = 1.1 = 81 * Enabled uninstall hook to delete option value and drop log table 82 80 83 = 1.0 = 81 84 * First release
Note: See TracChangeset
for help on using the changeset viewer.