Skip to content

Commit

Permalink
Work in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
dev4press committed Jun 21, 2023
1 parent dfc5bcc commit 77e4e7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/track/Tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public function track_file( $file, $replacement, $version, $message ) {
$on_line = $this->_actual_line;
}

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

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

Expand Down Expand Up @@ -443,7 +443,7 @@ public function track_argument( $function, $message, $version ) {

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

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

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

Expand Down Expand Up @@ -775,7 +775,7 @@ private function _prepare_http_api_logs() {
$response = array( 'errors' => $raw->get_error_message() );
} else if ( isset( $raw[ 'response' ] ) && is_wp_error( $raw[ 'response' ] ) ) {
$response = array( 'errors' => $raw[ 'response' ]->get_error_message() );
} else if ( isset( $raw[ 'response' ] ) && isset( $raw[ 'response' ][ 'http_response' ] ) ) {
} else if ( isset( $raw[ 'response' ][ 'http_response' ] ) ) {
$response = $raw[ 'response' ][ 'http_response' ]->to_array();
$response[ 'headers' ] = $response[ 'headers' ]->getAll();
} else {
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ Open the WordPress 'Settings' menu, there you will find 'DebugPress' panel.
* Edit: Display more relevant error source file and log for errors
* Edit: Errors tab moved to the end of the display order
* Edit: Changed tab order for several other debugger tabs
* Edit: Various small tweaks to the plugin PHP code
* Fix: Fatal error tracking calling default handler directly
* Fix: Sometimes errors not getting displayed in the Error tab

Expand Down

0 comments on commit 77e4e7c

Please sign in to comment.