[wp-trac] [WordPress Trac] #18453: Improve doing_it_wrong() and stop it from breaking WP (was: Improved doing_it_wrong())

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 16 21:57:42 UTC 2011


#18453: Improve doing_it_wrong() and stop it from breaking WP
-------------------------+------------------
 Reporter:  azaozz       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.3
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------
Changes (by azaozz):

 * keywords:  close =>
 * milestone:  Future Release => 3.3


Old description:

> The output of `_doing_it_wrong()` when `WP_DEBUG_DISPLAY` is true is
> somehow not that useful. Perhaps we can do a backtrace there. This would
> also help beginner PHP programmers a lot.

New description:

 The output of `_doing_it_wrong()` when `WP_DEBUG_DISPLAY` is true is
 somehow not that useful. Perhaps we can do a backtrace there. This would
 also help beginner PHP programmers a lot.

 Edit: storing the warnings in a global when WP_DEBUG_DISPLAY is true and
 outputting them at the top of the screen is a worthy enhancement too.

--

Comment:

 Didn't realize that at first but storing the warnings in a global when
 WP_DEBUG_DISPLAY is true and outputting them at the top of the screen
 prevents breaking of all XHR requests and wp_cron. It also will prevent
 these warning from showing in search engines if WP_DEBUG is run on a live
 site.

 Thinking we should handle all deprecated and doing_it_wrong warning as in
 18453-2.patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18453#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list