Log: Return print_r instead of echoing

This commit is contained in:
Corey McKrill 2019-10-25 16:27:02 -07:00
parent 94f2ce4559
commit 844fcccd40
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38

View file

@ -27,7 +27,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
<?php echo wp_kses_data( $entry['message'] ); ?> <?php echo wp_kses_data( $entry['message'] ); ?>
</summary> </summary>
<?php if ( ! empty( $entry['data'] ) ) : ?> <?php if ( ! empty( $entry['data'] ) ) : ?>
<pre><?php echo esc_html( print_r( $entry['data'] ) ); ?></pre> <pre><?php echo esc_html( print_r( $entry['data'], true ) ); ?></pre>
<?php endif; ?> <?php endif; ?>
</details> </details>
</td> </td>