[wp-trac] [WordPress Trac] #12041: wp-includes/wp-db.php WP_DEBUG constant
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 1 23:57:00 UTC 2010
#12041: wp-includes/wp-db.php WP_DEBUG constant
--------------------------+-------------------------------------------------
Reporter: wpmuguru | Owner: donncha
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Unassigned
Component: Multisite | Version: 2.9.1
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment(by nacin):
Replying to [comment:5 wpmuguru]:
> Please leave this open. The above change was for WP trunk. If Donncha
does a 2.9.2 for MU, this could be rolled in as well.
I was leaving this open ''only'' for a possible 2.9.x MU release. The
commit wasn't necessary because this problem shouldn't exist in trunk at
all.
Whenever we manually become wpdb aware, we're first defining what we need,
including WP_DEBUG. This was one of the two issues in #11881.
If we want wp-db.php to be able to stand on its own, then fine, but it
requires wp_die() and a few others anyway. In setup-config.php we define
ABSPATH, WPINC, WP_CONTENT_DIR, WP_DEBUG, and include load.php,
functions.php, compat.php, and classes.php, before getting to wp-db.php
later on when we want to check the connection.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12041#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list