Make WordPress Core

Changes between Initial Version and Version 15 of Ticket #18453


Ignore:
Timestamp:
09/16/2011 09:57:42 PM (13 years ago)
Author:
azaozz
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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18453

    • Property Milestone changed from Future Release to 3.3
    • Property Summary changed from Improved doing_it_wrong() to Improve doing_it_wrong() and stop it from breaking WP
  • Ticket #18453 – Description

    initial v15  
    11The 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.
     2
     3Edit: 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.