[wp-trac] [WordPress Trac] #21218: plugin_dir_url and plugins_url display absolute filepath within url
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 11 14:34:27 UTC 2012
#21218: plugin_dir_url and plugins_url display absolute filepath within url
--------------------------+----------------------
Reporter: ChrisWiegman | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.4.1
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+----------------------
Changes (by nacin):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
plugins_url() takes two arguments: $path and $plugin. $plugin should be
`__FILE__`. $path should be what path within the plugin's directory you
want to generate a URL to.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21218#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list