Simplify the recording of backtraces
|Reported by:||westi||Owned by:||westi|
We currently have a simple backtrace generator in wpdb::get_caller which doesn't always tell the complete truth (e.g. when object methods are called statically this is not shown) and is limited to use from the wpdb object.
We should have a more generic function available in core which wpdb and plugins (like debug bar can use)