Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#21218 closed defect (bug)

plugin_dir_url and plugins_url display absolute filepath within url — at Initial Version

Reported by: ChrisWiegman Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.1
Component: General Keywords:
Focuses: Cc:


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
would become

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

Change History (0)

Note: See TracTickets for help on using tickets.