[wp-trac] Re: [WordPress Trac] #6341: feature request: plugin_url()
	function
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Sun Jan 25 12:17:10 GMT 2009
    
    
  
#6341: feature request: plugin_url() function
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  jacobsantos
     Type:  enhancement        |       Status:  closed     
 Priority:  low                |    Milestone:  2.8        
Component:  Optimization       |      Version:  2.7        
 Severity:  minor              |   Resolution:  invalid    
 Keywords:  has-patch tested   |  
-------------------------------+--------------------------------------------
Comment (by Denis-de-Bernardy):
 I really don't like the idea of a relative parameter for that.
 it's like... not natural, from a syntax standpoint, to call:
 {{{
 $folder = plugins_url('', __FILE__);
 // and then batch enqueue script/css files
 }}}
 this is more natural:
 {{{
 $folder = plugin_url(__FILE__);
 // and then batch enqueue script/css files
 }}}
-- 
Ticket URL: <http://trac.wordpress.org/ticket/6341#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list