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

WordPress Trac noreply at wordpress.org
Tue Apr 15 03:09:27 UTC 2014


#27806: Link formatting for Plugins incorrect if defining WP_PLUGIN_URL
--------------------------+-----------------------------
 Reporter:  mamborambo    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Plugins       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Because I am sharing a large repository of plugins between several WP
 installations, I defined WP_PLUGIN_URL and WPMU_PLUGIN_URL to point to a
 different host, say http://wpplugs.mydomain

 When a plugin author uses plugins_url() to get a link to a deeper
 component, say a css style, plugins_url() resolves the link by expanding
 the basename of that plugin/component, and attach it between WP_PLUGIN_URL
 and path.

 This algorithm is correct if plugin files live below Wordpress
 installation, *BUT IS INCORRECT* if plugin files live on different file
 system --- as intended by the explicit use of WP_PLUGIN_URL.

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


More information about the wp-trac mailing list