[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 20:34:10 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 Ipstenu):

 The usecase interests me.

 If you're trying to have a plugin with a lot of files in an MU plugin, you
 would do this:

 /mu-plugins/myplugin.php
 /mu-plugins/myplugin/

 Put all the files in the folder myplugin and you can call them from
 myplugin.php :) Works fine. Even works with plugins_url()

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34358#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list