mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 09:11:17 +03:00
Log: Don't use details element if entry has no data
This commit is contained in:
parent
959b01e446
commit
3d8c0c16b5
|
@ -22,14 +22,16 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
<?php echo esc_html( date( 'Y-m-d H:i:s', $entry['timestamp'] ) ); ?>
|
||||
</td>
|
||||
<td>
|
||||
<details>
|
||||
<summary>
|
||||
<?php echo wp_kses_data( $entry['message'] ); ?>
|
||||
</summary>
|
||||
<?php if ( ! empty( $entry['data'] ) ) : ?>
|
||||
<?php if ( ! empty( $entry['data'] ) ) : ?>
|
||||
<details>
|
||||
<summary>
|
||||
<?php echo wp_kses_data( $entry['message'] ); ?>
|
||||
</summary>
|
||||
<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>
|
||||
<?php
|
||||
|
|
Loading…
Reference in a new issue