[wp-hackers] "deprecating" direct calls to wp-config.php

Stephen Rider wp-hackers at striderweb.com
Thu Nov 5 03:07:15 UTC 2009


That bit is copied straight from the existing _deprecated_file()  
function.

So if that is a problem, then it is also a bug in existing WP Core code.

Stephen

On Nov 4, 2009, at 9:59 AM, Andrew Nacin wrote:

> I haven't started to comment on Trac tickets yet, so I figured I'd  
> just drop you an e-mail. In your most recent patch in #11059, you  
> use true === WP_DEBUG. Really, it should be true == WP_DEBUG, as  
> that's the same check that is made in wp-settings.php. Otherwise,  
> someone using define('WP_DEBUG', 1) would get all debug notices  
> except for this proposed one.
>
> On Sun, Nov 1, 2009 at 21:56, Stephen Rider <wp- 
> hackers at striderweb.com> wrote:
> Hi all --
>
> I just wanted to call a bit of attention to this patch:
> <http://core.trac.wordpress.org/ticket/11059>


More information about the wp-hackers mailing list