humanmade / aws-xray

HM Platform AWS X-Ray Integration
23 stars 4 forks source link

overload wpdb::get_caller() #18

Closed nathanielks closed 6 years ago

nathanielks commented 6 years ago

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.

joehoyle commented 6 years ago

Looks good, let's fix up the linting though!

nathanielks commented 6 years ago

@joehoyle this is up for review!