[wp-trac] [WordPress Trac] #27806: Link formatting for Plugins incorrect if defining WP_PLUGIN_URL

WordPress Trac noreply at wordpress.org
Tue Apr 15 17:56:31 UTC 2014


#27806: Link formatting for Plugins incorrect if defining WP_PLUGIN_URL
--------------------------+------------------------------
 Reporter:  mamborambo    |       Owner:  rmccue
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  2.7
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by jeremyfelt):

 As an initial example, I set the following:

 {{{
 define( 'WPMU_PLUGIN_URL', 'http://foo.bar/wp-content/mu-plugins' );
 define( 'WPMU_PLUGIN_DIR', '/tmp/mapped/drive' );
 }}}

 In `/tmp/mapped/drive/index.php`, I have:

 {{{
 add_action( 'init', 'myplugins' );
 function myplugins() {
         echo plugins_url( '/mu-images/image.png', __FILE__ );
         die();
 }
 }}}

 This returns `http://foo.bar/wp-content/mu-plugins/mu-images/image.png` as
 expected.

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


More information about the wp-trac mailing list