Skip to content

Commit

Permalink
Merge pull request #124 from rocklobster-in/dev/2.5
Browse files Browse the repository at this point in the history
Use wp_json_encode()
  • Loading branch information
takayukister authored Mar 16, 2024
2 parents 259388c + f342efd commit 61e66d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/includes/meta-boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ function flamingo_inbound_recaptcha_meta_box( $post ) {
<?php foreach ( (array) $post->recaptcha as $key => $value ) : ?>
<tr>
<td class="field-title"><?php echo esc_html( $key ); ?></td>
<td class="field-value"><?php echo esc_html( json_encode( $value, JSON_PRETTY_PRINT ) ); ?></td>
<td class="field-value"><?php echo esc_html( wp_json_encode( $value, JSON_PRETTY_PRINT ) ); ?></td>
</tr>
<?php endforeach; ?>

Expand Down

0 comments on commit 61e66d0

Please sign in to comment.