Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 73198e0a99730ba05eaedb0416e66acb66276197 1 parent 44aa630
Kaiser authored
18 changelog.txt
... ... @@ -0,0 +1,18 @@
  1 +*0.1*
  2 +Initial version.
  3 +*0.2*
  4 +Clean Up & code styling alignment.
  5 +*0.3*
  6 +Minor styling fixes.
  7 +*0.4*
  8 +Moved to OOP concept.
  9 +*0.5*
  10 +Improved API: now supports different plugin locations aside from the `WP_CONTENT_DIR`.
  11 +*0.5.1*
  12 +Minor fix for left over debug code.
  13 +*0.5.2*
  14 +JS styling for readability.
  15 +*0.6*
  16 +Removed "activate" link when plugin is already active, as suggested by Julien Chaumond in Issue #3.
  17 +*0.7*
  18 +Added the "adp_root_{$root}" filter to allow completely custom locations. Moved changelog to separate file.
5 inc/api.php
@@ -125,9 +125,12 @@ function _get_new_plugin_directory_root( $root )
125 125 break;
126 126
127 127 case 'content' :
128   - default :
129 128 $root = WP_CONTENT_DIR;
130 129 break;
  130 +
  131 + default :
  132 + $root = apply_filters( "adp_root_{$root}", WP_CONTENT_DIR );
  133 + break;
131 134 }
132 135
133 136 return trailingslashit( $root );
2  plugin-dirs.php
@@ -4,7 +4,7 @@
4 4 Plugin Name: Additional Plugin Directories
5 5 Plugin URI: http://github.com/chrisguitarguy
6 6 Description: A framework to allow adding additional plugin directories to WordPress
7   -Version: 0.6
  7 +Version: 0.7
8 8 Author: Christopher Davis
9 9 Contributors: Franz Josef Kaiser, Julien Chaumond
10 10 Author URI: http://christopherdavis.me
14 readme.md
Source Rendered
@@ -10,16 +10,4 @@ For an example, take a look at the `example_plugin` folder and the `register_add
10 10
11 11 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.
12 12
13   -*) 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.
14   -
15   -
16   -CHANGELOG
17   -
18   -0.1 Initial version
19   -0.2 Clean Up & code styling alignment
20   -0.3 Minor styling fixes
21   -0.4 Moved to OOP concept
22   -0.5 Improved API - now supports different plugin locations aside from the `WP_CONTENT_DIR`.
23   -0.5.1 Minor fix for left over debug code
24   -0.5.2 JS styling for readability
25   -0.6 Removed "activate" link when plugin is already active, as suggested by Julien Chaumond in Issue #3
  13 +*) 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

Kaiser

As discussed.

Please sign in to comment.
Something went wrong with that request. Please try again.