[wp-trac] [WordPress Trac] #4607: ABSPATH already has a trailing slash

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 10 20:38:23 GMT 2007


#4607: ABSPATH already has a trailing slash
--------------------------+-------------------------------------------------
 Reporter:  Nazgul        |       Owner:  anonymous  
     Type:  enhancement   |      Status:  new        
 Priority:  low           |   Milestone:  2.3 (trunk)
Component:  Optimization  |     Version:  2.3        
 Severity:  normal        |    Keywords:  has-patch  
--------------------------+-------------------------------------------------
 The following (pseudo)code occurs a couple of times in the codebase.
 {{{
 include(ABSPATH . '/something.php')
 }}}

 But because ABSPATH by default already has a trailing slash, the extra
 slash is not needed.

 I've made a patch which removes those extra slashes where needed.

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


More information about the wp-trac mailing list