mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 02:01:18 +03:00
Log: Don't use details element if entry has no data
This commit is contained in:
parent
959b01e446
commit
3d8c0c16b5
1 changed files with 9 additions and 7 deletions
|
@ -22,14 +22,16 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
||||||
<?php echo esc_html( date( 'Y-m-d H:i:s', $entry['timestamp'] ) ); ?>
|
<?php echo esc_html( date( 'Y-m-d H:i:s', $entry['timestamp'] ) ); ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<details>
|
<?php if ( ! empty( $entry['data'] ) ) : ?>
|
||||||
<summary>
|
<details>
|
||||||
<?php echo wp_kses_data( $entry['message'] ); ?>
|
<summary>
|
||||||
</summary>
|
<?php echo wp_kses_data( $entry['message'] ); ?>
|
||||||
<?php if ( ! empty( $entry['data'] ) ) : ?>
|
</summary>
|
||||||
<pre><?php echo esc_html( print_r( $entry['data'], true ) ); ?></pre>
|
<pre><?php echo esc_html( print_r( $entry['data'], true ) ); ?></pre>
|
||||||
<?php endif; ?>
|
</details>
|
||||||
</details>
|
<?php else : ?>
|
||||||
|
<?php echo wp_kses_data( $entry['message'] ); ?>
|
||||||
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue