[wp-trac] [WordPress Trac] #19921: always use require_once for wp-load.php (fixes "ABSPATH defined multiple times")
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 10 17:53:45 UTC 2012
#19921: always use require_once for wp-load.php (fixes "ABSPATH defined multiple
times")
----------------------------------------------+----------------------------
Reporter: convissor | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: General | Review
Severity: normal | Version: 3.3.1
Keywords: require_once require wp-load.php | Resolution:
----------------------------------------------+----------------------------
Comment (by convissor):
Nacin: you are right that moving the login_header() and login_footer()
some place else (such as wp-includes/functions.php) is a good idea.
The move would not obviate the fact that wp-load.php can only be cleanly
loaded once. require_once is the most direct approach to ensure that.
If you are trying to protect certain files from being directly included by
plugins or other WP code, other means are available.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19921#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list