Changeset 45607 for trunk/tests/phpunit/includes/wp-profiler.php
- Timestamp:
- 07/08/2019 12:55:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/wp-profiler.php
r44915 r45607 115 115 if ( $this->stack ) { 116 116 global $wp_actions; 117 if ( $tag == end( $wp_actions )) {118 @$this->stack[ count( $this->stack ) - 1 ]['actions'][ $tag ]++;117 if ( end( $wp_actions ) === $tag ) { 118 $this->stack[ count( $this->stack ) - 1 ]['actions'][ $tag ]++; 119 119 } else { 120 @$this->stack[ count( $this->stack ) - 1 ]['filters'][ $tag ]++;120 $this->stack[ count( $this->stack ) - 1 ]['filters'][ $tag ]++; 121 121 } 122 122 } … … 126 126 public function log_action( $tag ) { 127 127 if ( $this->stack ) { 128 @$this->stack[ count( $this->stack ) - 1 ]['actions'][ $tag ]++;128 $this->stack[ count( $this->stack ) - 1 ]['actions'][ $tag ]++; 129 129 } 130 130 } … … 145 145 $sql = preg_replace( '/(WHERE \w+ =) \'\[-\w]+\'/', '$1 \'xxx\'', $sql ); 146 146 147 @$out[ $sql ] ++;147 $out[ $sql ] ++; 148 148 } 149 149 asort( $out ); … … 156 156 foreach ( $queries as $q ) { 157 157 if ( empty( $q[2] ) ) { 158 @$out['unknown']++;158 $out['unknown']++; 159 159 } else { 160 @$out[ $q[2] ]++;160 $out[ $q[2] ]++; 161 161 } 162 162 }
Note: See TracChangeset
for help on using the changeset viewer.