PluginProbe
Bogo / 2.6
Bogo v2.6
3.9.3 trunk 1.0 1.1 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.6 2.6.1 2.7 2.8 2.8.1 2.9 3.0 3.0.1 All 52 releases
← All changes | bogo.php +11 -7 2.42.6 View file →
@@ -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 +}