[wp-trac] [WordPress Trac] #16199: plugin_dir_url - wrong directory for symlinks

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 12 10:40:16 UTC 2011


#16199: plugin_dir_url - wrong directory for symlinks
--------------------------+-----------------------------
 Reporter:  iworks        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Plugins       |    Version:  3.0.4
 Severity:  trivial       |   Keywords:  plugin_dir_url
--------------------------+-----------------------------
 If plugin dir is a symlink, plugin_dir_url generate wrong url, getting
 physical not logical path.

 I have symlink in ''wp-content/plugins''

 {{{
 ln -s /home/user/svn/wordpress/plugins/plugin_dir/trunk plugin_dir
 }}}

 returns:
 {{{
 http://wordpress/wp-
 content/plugins/home/user/svn/wordpress/plugins/plugin_dir/trunk/
 }}}

 instead:

 {{{
 http://wordpress/wp-content/plugins/plugin_dir/
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16199>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list