[wp-trac] [WordPress Trac] #9863: PHP Notice: Constant ABSPATH already defined at install.php

WordPress Trac wp-trac at lists.automattic.com
Mon May 18 18:55:38 GMT 2009


#9863: PHP Notice: Constant ABSPATH already defined at install.php
-----------------------------+----------------------------------------------
 Reporter:  lilyfan          |       Owner:  dd32     
     Type:  defect (bug)     |      Status:  new      
 Priority:  normal           |   Milestone:  2.8      
Component:  Upgrade/Install  |     Version:  2.8      
 Severity:  normal           |    Keywords:  has-patch
-----------------------------+----------------------------------------------
 A PHP Notice below occurrs at wp-admin/install.php

 '''Notice: Constant ABSPATH already defined in /Users/lily/Sites/wp/28/wp-
 load.php on line 20'''

 There is no need to define ABSPATH at line 20 of install.php.
 The place of wp-load.php is fixed at root directory of Wordpress,
 therefore we can include wp-load.php as below:

 {{{
 require_once(dirname(dirname(__FILE__)) . '/wp-load.php');
 }}}

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


More information about the wp-trac mailing list