[wp-trac] [WordPress Trac] #17167: require() path consistency

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 18 17:38:18 UTC 2011


#17167: require() path consistency
--------------------------+-----------------------------
 Reporter:  niallkennedy  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  minor         |   Keywords:  has-patch
--------------------------+-----------------------------
 I see relative require paths built as both './wp-load.php' and dirname(
 !__FILE!__ ) . '/wp-load.php' inside PHP files at the project root. Pick
 one for consistency?

 Attached is a patch for wp-activate showing an example of the two path
 references within a few lines of each other.

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


More information about the wp-trac mailing list