Browse files

allow custom dirs with new filter, moved changelog to separate file

  • Loading branch information...
1 parent 44aa630 commit 73198e0a99730ba05eaedb0416e66acb66276197 franz-josef-kaiser committed Jun 28, 2012
Showing with 24 additions and 15 deletions.
  1. +18 −0 changelog.txt
  2. +4 −1 inc/api.php
  3. +1 −1 plugin-dirs.php
  4. +1 −13 readme.md
View
18 changelog.txt
@@ -0,0 +1,18 @@
+*0.1*
+Initial version.
+*0.2*
+Clean Up & code styling alignment.
+*0.3*
+Minor styling fixes.
+*0.4*
+Moved to OOP concept.
+*0.5*
+Improved API: now supports different plugin locations aside from the `WP_CONTENT_DIR`.
+*0.5.1*
+Minor fix for left over debug code.
+*0.5.2*
+JS styling for readability.
+*0.6*
+Removed "activate" link when plugin is already active, as suggested by Julien Chaumond in Issue #3.
+*0.7*
+Added the "adp_root_{$root}" filter to allow completely custom locations. Moved changelog to separate file.
View
5 inc/api.php
@@ -125,9 +125,12 @@ function _get_new_plugin_directory_root( $root )
break;
case 'content' :
- default :
$root = WP_CONTENT_DIR;
break;
+
+ default :
+ $root = apply_filters( "adp_root_{$root}", WP_CONTENT_DIR );
@franz-josef-kaiser
Owner
franz-josef-kaiser added a line comment Jun 28, 2012

As discussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ break;
}
return trailingslashit( $root );
View
2 plugin-dirs.php
@@ -4,7 +4,7 @@
Plugin Name: Additional Plugin Directories
Plugin URI: http://github.com/chrisguitarguy
Description: A framework to allow adding additional plugin directories to WordPress
-Version: 0.6
+Version: 0.7
Author: Christopher Davis
Contributors: Franz Josef Kaiser, Julien Chaumond
Author URI: http://christopherdavis.me
View
14 readme.md
@@ -10,16 +10,4 @@ For an example, take a look at the `example_plugin` folder and the `register_add
You need to copy this folder to your actual plugins folder and then activate it from within your plugins list. It only works if the main plugin is activated.
-*) the one you defined with the `WP_PLUGIN_DIR` or `WPMU_PLUGIN_DIR` in your wp-config.php file - or the default `plugins` folder in your install.
-
-
-CHANGELOG
-
-0.1 Initial version
-0.2 Clean Up & code styling alignment
-0.3 Minor styling fixes
-0.4 Moved to OOP concept
-0.5 Improved API - now supports different plugin locations aside from the `WP_CONTENT_DIR`.
-0.5.1 Minor fix for left over debug code
-0.5.2 JS styling for readability
-0.6 Removed "activate" link when plugin is already active, as suggested by Julien Chaumond in Issue #3
+*) the one you defined with the `WP_PLUGIN_DIR` or `WPMU_PLUGIN_DIR` in your wp-config.php file - or the default `plugins` folder in your install.

0 comments on commit 73198e0

Please sign in to comment.