[wp-trac] [WordPress Trac] #34358: plugin_dir_url( __FILE__ ) returns plugins directory when plugin symlinked to mu-plugins
WordPress Trac
noreply at wordpress.org
Wed Apr 20 16:35:14 UTC 2016
#34358: plugin_dir_url( __FILE__ ) returns plugins directory when plugin symlinked
to mu-plugins
-------------------------------------------------+-------------------------
Reporter: scamartist26 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Plugins | Review
Severity: normal | Version: 4.3.1
Keywords: has-patch needs-unit-tests needs- | Resolution:
refresh | Focuses:
-------------------------------------------------+-------------------------
Comment (by andy):
This bug just bit me and I independently wrote essentially the same patch
to fix it. When I came to create a new ticket, Trac found this one. A
ticket saved is a ticket earned, right?
Our use case is a WordPress host where customers are allowed to use mu-
plugins but we also require a suite of mu-plugins. This suite needs to be
symlinked because copying it into every customer's directory would waste
space and time and inevitably introduce bugs during times of
inconsistency. With a symlink we can add, change and remove plugins in
this suite without touching customer directories and without them going
out of sync with each other.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34358#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list