Skip to content

Commit

Permalink
Merge pull request #35 from 10up/fix/typo-issue-34
Browse files Browse the repository at this point in the history
Change from "clsas" to "class"
  • Loading branch information
felipeelia authored Apr 19, 2021
2 parents a94a1e6 + 31f9970 commit 07834ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/class-ep-debug-bar-query-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@ public static function render_query( $query, $type = '' ) {
</div>

<?php if ( ! empty( $query['args']['headers'] ) ) : ?>
<div clsas="ep-query-headers">
<div class="ep-query-headers">
<strong><?php esc_html_e( 'Headers:', 'debug-bar-elasticpress' ); ?> <div class="query-headers-toggle dashicons"></div></strong>
<pre class="query-headers"><?php echo wp_kses_post( var_dump( $query['args']['headers'], true ) ); ?></pre>
</div>
<?php endif; ?>

<?php if ( ! empty( $query['query_args'] ) ) : ?>
<div clsas="ep-query-args">
<div class="ep-query-args">
<strong><?php esc_html_e( 'Query Args:', 'debug-bar-elasticpress' ); ?> <div class="query-args-toggle dashicons"></div></strong>
<pre class="query-args"><?php echo wp_kses_post( var_dump( $query['query_args'], true ) ); ?></pre>
</div>
<?php endif; ?>

<?php if ( ! empty( $query['args']['body'] ) ) : ?>
<div clsas="ep-query-body">
<div class="ep-query-body">
<strong><?php esc_html_e( 'Query Body:', 'debug-bar-elasticpress' ); ?> <div class="query-body-toggle dashicons"></div></strong>
<pre class="query-body"><?php echo esc_html( stripslashes( wp_json_encode( json_decode( $query['args']['body'], true ), JSON_PRETTY_PRINT ) ) ); ?></pre>
</div>
Expand All @@ -125,7 +125,7 @@ public static function render_query( $query, $type = '' ) {
<div class="ep-query-response-code">
<strong><?php esc_html_e( 'Query Response Code:', 'debug-bar-elasticpress' ); ?></strong> <?php esc_html_e( 'Request Error', 'debug-bar-elasticpress' ); ?>
</div>
<div clsas="ep-query-errors">
<div class="ep-query-errors">
<strong><?php esc_html_e( 'Errors:', 'debug-bar-elasticpress' ); ?> <div class="query-errors-toggle dashicons"></div></strong>
<pre class="query-errors"><?php echo esc_html( stripslashes( wp_json_encode( $query['request']->errors, JSON_PRETTY_PRINT ) ) ); ?></pre>
</div>
Expand Down

0 comments on commit 07834ad

Please sign in to comment.