Skip to content

Instantly share code, notes, and snippets.

@dessibelle
Created September 17, 2013 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dessibelle/6595023 to your computer and use it in GitHub Desktop.
Save dessibelle/6595023 to your computer and use it in GitHub Desktop.
Fix for missing activation hook in Taxonomy Order 1.1
--- orig.taxonomy-order.php 2013-09-17 16:18:19.000000000 +0200
+++ taxonomy-order.php 2013-09-17 16:18:50.000000000 +0200
@@ -86,7 +86,7 @@
self::$plugin_url = WP_PLUGIN_URL . '/' . self::$plugin_folder;
self::$plugin_file = self::$plugin_dir . '/taxonomy-order.php';
- register_activation_hook( self::$plugin_file, array( $this, 'activation_hook' ) );
+ // register_activation_hook( self::$plugin_file, array( $this, 'activation_hook' ) );
add_action( 'init', array($this, 'interface_wpdbfix') );
add_action( 'switch_blog', array($this, 'interface_wpdbfix') );
@@ -429,4 +429,4 @@
}
}
-?>
+register_activation_hook( __FILE__, array( $Interface_Taxonomy_Order, 'activation_hook' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment