[wp-trac] [WordPress Trac] #34358: plugin_dir_url( __FILE__ ) returns plugins directory when plugin symlinked to mu-plugins
WordPress Trac
noreply at wordpress.org
Mon Oct 19 19:26:32 UTC 2015
#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 Review
Component: Filesystem API | Version: 4.3.1
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by jdgrimes):
Related: #16953, especially [27999]
Basically, symlinked MU plugins (or any "single file" plugins) are not
supported. ([https://core.trac.wordpress.org/ticket/16953#comment:114 Not
my fault].)
I'm not 100% sure that this is what is causing your problem, but if so, it
might be possible to work around this by calling
`wp_register_plugin_realpath( __FILE__ )` yourself.
But since the decision was made before not to support symlinked MU
plugins, I think that the core committers will need to understand your
use-case better before considering changing their minds, if indeed that is
the cause of this bug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34358#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list