If there's ever an error that occurs in a wpdb query and wp-includes/functions.php hasn't been loaded yet (eg when using hm-platform), wp_debug_backtrace_summary won't be available and will cause fatal errors. This overloads the wpdb::get_caller() method in order to redirect to a local copy wp_debug_backtrace_summary when the function is not available yet.
If there's ever an error that occurs in a wpdb query and
wp-includes/functions.php
hasn't been loaded yet (eg when using hm-platform),wp_debug_backtrace_summary
won't be available and will cause fatal errors. This overloads thewpdb::get_caller()
method in order to redirect to a local copywp_debug_backtrace_summary
when the function is not available yet.