Skip to content

Commit 77e4e7c

Browse files
committed
Work in progress.
1 parent dfc5bcc commit 77e4e7c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/track/Tracker.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public function track_file( $file, $replacement, $version, $message ) {
381381
$on_line = $this->_actual_line;
382382
}
383383

384-
$error = compact( 'deprecated', 'replacement', 'message', 'version', 'in_file', 'on_line', 'file', 'caller' );;
384+
$error = compact( 'deprecated', 'replacement', 'message', 'version', 'in_file', 'on_line', 'file', 'caller' );
385385

386386
$this->deprecated[ 'file' ][] = $error;
387387

@@ -443,7 +443,7 @@ public function track_argument( $function, $message, $version ) {
443443

444444
$caller = $this->_get_caller( '_deprecated_argument', true );
445445

446-
$error = compact( 'deprecated', 'message', 'menu', 'version', 'in_file', 'on_line', 'caller' );;
446+
$error = compact( 'deprecated', 'message', 'menu', 'version', 'in_file', 'on_line', 'caller' );
447447

448448
$this->deprecated[ 'argument' ][] = $error;
449449

@@ -775,7 +775,7 @@ private function _prepare_http_api_logs() {
775775
$response = array( 'errors' => $raw->get_error_message() );
776776
} else if ( isset( $raw[ 'response' ] ) && is_wp_error( $raw[ 'response' ] ) ) {
777777
$response = array( 'errors' => $raw[ 'response' ]->get_error_message() );
778-
} else if ( isset( $raw[ 'response' ] ) && isset( $raw[ 'response' ][ 'http_response' ] ) ) {
778+
} else if ( isset( $raw[ 'response' ][ 'http_response' ] ) ) {
779779
$response = $raw[ 'response' ][ 'http_response' ]->to_array();
780780
$response[ 'headers' ] = $response[ 'headers' ]->getAll();
781781
} else {

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Open the WordPress 'Settings' menu, there you will find 'DebugPress' panel.
120120
* Edit: Display more relevant error source file and log for errors
121121
* Edit: Errors tab moved to the end of the display order
122122
* Edit: Changed tab order for several other debugger tabs
123+
* Edit: Various small tweaks to the plugin PHP code
123124
* Fix: Fatal error tracking calling default handler directly
124125
* Fix: Sometimes errors not getting displayed in the Error tab
125126

0 commit comments

Comments
 (0)