[wp-trac] [WordPress Trac] #13202: deprecated function warning improvement

WordPress Trac wp-trac at lists.automattic.com
Sat May 1 14:48:01 UTC 2010


#13202: deprecated function warning improvement
-------------------------+--------------------------------------------------
 Reporter:  hakre        |       Owner:              
     Type:  enhancement  |      Status:  new         
 Priority:  normal       |   Milestone:  3.0         
Component:  General      |     Version:              
 Severity:  normal       |    Keywords:  dev-feedback
-------------------------+--------------------------------------------------
 Knee-deep in tests I ran over this:

 Since PHP 4.3 we have a nice function called {{{debug_backtrace()}}} that
 can improve the message thrown out in {{{_deprecated_function()}}} a lot
 by adding information about the context (e.g. file and line) where a
 deprecated function was originally called.

 In conjunction with WP_DEBUG a real time saver. Simple and smooth. Patch
 is against fresh trunk.

 Example output after patch:

 ----

 Notice: get_settings is '''deprecated''' since version 2.1! Use
 get_option() instead. Called in file '''wp-
 content/themes/oldtheme/functions.php'''  on line 5.

 ----

 Since we're globally in testing these days I can only suggest to give this
 a shot and put this ticket 3.0 out of the standard order. If a core dev is
 not confident with that, please put on a later version.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13202>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list