deprecated function warning improvement
|Reported by:||hakre||Owned by:|
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.