Plugin Directory

Changeset 2417432


Ignore:
Timestamp:
11/12/2020 07:02:44 PM (5 years ago)
Author:
josephscott
Message:

Fix the error and time checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debug-bar/trunk/panels/class-debug-bar-wp-http.php

    r2417342 r2417432  
    106106
    107107        $elapsed_class = '';
     108        if ( $this->total_time > $this->time_limit ) {
     109            $elapsed_class = 'debug_bar_http_error';
     110        }
     111
     112        $errors_class = '';
    108113        if ( $this->num_errors > 0 ) {
    109             $elapsed_class = 'debug_bar_http_error';
    110         }
    111 
    112         $errors_class = '';
    113         if ( $this->total_time > $this->time_limit ) {
    114114            $errors_class = 'debug_bar_http_error';
    115115        }
Note: See TracChangeset for help on using the changeset viewer.