[wp-trac] [WordPress Trac] #7087: ABSPATH already defined
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 3 21:46:02 GMT 2008
#7087: ABSPATH already defined
----------------------------+-----------------------------------------------
Reporter: rnt | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: Administration | Version: 2.6
Severity: major | Keywords: abspath notice
----------------------------+-----------------------------------------------
When I access to /wp-admin/ (trunk in r8041) I get:
{{{
Notice: Constant ABSPATH already defined in
/home/rcovarru/svn/wordpress/trunk/wp-config.php on line 26
}}}
When I see the files wp-admin/admin.php and wp-load.php, the constant
ABSPATH is re-defined.
¿This produce the NOTICE?
{{{
metano:~/svn/wordpress/trunk $ cat -n wp-admin/admin.php | head -n 8
1 <?php
2 define('WP_ADMIN', TRUE);
3
4 if ( defined('ABSPATH') )
5 require_once(ABSPATH . 'wp-load.php');
6 else
7 require_once('../wp-load.php');
8
metano:~/svn/wordpress/trunk $ cat -n wp-load.php | head -n 22 | tail -n 4
19 /** Define ABSPATH as this files directory */
20 define( 'ABSPATH', dirname(__FILE__) . '/' );
21
22 if ( file_exists( ABSPATH . 'wp-config.php') ) {
metano:~/svn/wordpress/trunk $
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/7087>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list