[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:39:29 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: |
--------------------------+----------------------
Description changed by SergeyBiryukov:
Old description:
> When using plugin_dir_url( __FILE__ ) or plugins_url( __FILE__ ) in a
> plugin with PHP 5.2.17 the absolute filepath is included in the URL
> string. In both cases the functions include the absolute filepath before
> the plugin directory name and after http://host/wp-content/plugins.
>
> for example in PHP 5.2
> http://mydomain.com/wp-content/plugins/my-plugin
> would become
> http://mydomain.com/wp-content/plugins/home/fileowner/public_html/wp-
> content/plugins/my-plugin/
>
> in PHP 5.3 plugin_dir_url works as it should but plugins_url still
> displays the absolute URL within.
>
> All has been tested using PHP 5.2.17 and PHP 5.3.13 in MAMP Pro on OSX
> 10.7
New description:
When using `plugin_dir_url( __FILE__ )` or `plugins_url( __FILE__ )` in a
plugin with PHP 5.2.17 the absolute filepath is included in the URL
string. In both cases the functions include the absolute filepath before
the plugin directory name and after http://host/wp-content/plugins.
for example in PHP 5.2 [[BR]]
http://mydomain.com/wp-content/plugins/my-plugin [[BR]]
would become [[BR]]
http://mydomain.com/wp-content/plugins/home/fileowner/public_html/wp-
content/plugins/my-plugin/
in PHP 5.3 plugin_dir_url works as it should but plugins_url still
displays the absolute URL within.
All has been tested using PHP 5.2.17 and PHP 5.3.13 in MAMP Pro on OSX
10.7
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21218#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list