[wp-trac] [WordPress Trac] #18453: Improved doing_it_wrong()
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 24 22:22:45 UTC 2011
#18453: Improved doing_it_wrong()
-------------------------+-----------------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: close |
-------------------------+-----------------------------
Comment (by nacin):
Replying to [comment:6 mikeschinkel]:
> Maybe I'm missing something, but doesn't this only run on a
warning/error and not on every page load? If yes, the being expensive
isn't an issue, right?
Every page load that has the warning/error -- which, in the case of
conditional tags or enqueued scripts (the main two instances of
_doing_it_wrong) would be pretty much every pageload. Once nice thing
about our deprecated logging is that they don't have any expensive aspects
to them, which means WP_DEBUG could be safely run in production.
I use Xdebug and I get my backtraces just fine ;-)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18453#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list