Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
allow custom dirs with new filter, moved changelog to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
franz-josef-kaiser committed Jun 28, 2012
1 parent 44aa630 commit 73198e0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
18 changes: 18 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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.
5 changes: 4 additions & 1 deletion inc/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
break;
}

return trailingslashit( $root );
Expand Down
2 changes: 1 addition & 1 deletion plugin-dirs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 1 addition & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.