| @@ -6,21 +6,21 @@ | ||
| 6 | 6 | Author: Takayuki Miyoshi |
| 7 | 7 | Author URI: http://ideasilo.wordpress.com/ |
| 8 | 8 | Text Domain: bogo |
| 9 | 9 | Domain Path: /languages/ |
| 10 | -Version: 2.4 | |
| 10 | +Version: 2.6 | |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -define( 'BOGO_VERSION', '2.4' ); | |
| 13 | +define( 'BOGO_VERSION', '2.6' ); | |
| 14 | 14 | |
| 15 | -define( 'BOGO_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); | |
| 15 | +define( 'BOGO_PLUGIN', __FILE__ ); | |
| 16 | 16 | |
| 17 | +define( 'BOGO_PLUGIN_BASENAME', plugin_basename( BOGO_PLUGIN ) ); | |
| 18 | + | |
| 17 | 19 | define( 'BOGO_PLUGIN_NAME', trim( dirname( BOGO_PLUGIN_BASENAME ), '/' ) ); |
| 18 | 20 | |
| 19 | -define( 'BOGO_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) ); | |
| 21 | +define( 'BOGO_PLUGIN_DIR', untrailingslashit( dirname( BOGO_PLUGIN ) ) ); | |
| 20 | 22 | |
| 21 | -define( 'BOGO_PLUGIN_URL', untrailingslashit( plugins_url( '', __FILE__ ) ) ); | |
| 22 | - | |
| 23 | 23 | require_once BOGO_PLUGIN_DIR . '/includes/functions.php'; |
| 24 | 24 | require_once BOGO_PLUGIN_DIR . '/includes/rewrite.php'; |
| 25 | 25 | require_once BOGO_PLUGIN_DIR . '/includes/link-template.php'; |
| 26 | 26 | require_once BOGO_PLUGIN_DIR . '/includes/nav-menu.php'; |
| @@ -125,5 +125,9 @@ | ||
| 125 | 125 | array(), BOGO_VERSION, 'all' ); |
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | -?> | |
| 129 | +add_action( 'deactivate_' . BOGO_PLUGIN_BASENAME, 'bogo_deactivate' ); | |
| 130 | + | |
| 131 | +function bogo_deactivate() { | |
| 132 | + bogo_delete_prop( 'lang_rewrite_regex' ); | |
| 133 | +} | |