Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevalk committed May 16, 2024
1 parent a7a8272 commit 0e723ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/class-admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ private function get_value_button( string $name, $value ): string {
<button class="aaa-option-optimizer-popover__close" popovertarget="' . $id . '" popovertargetaction="hide">X</button>' .
// translators: %s is the name of the option.
'<p><strong>' . sprintf( esc_html__( 'Value of %s', 'aaa-option-optimizer' ), '<code>' . esc_html( $name ) . '</code>' ) . '</strong></p>
<pre>' . htmlentities( $string ) . '</pre>
<pre>' . htmlentities( $string, ENT_QUOTES | ENT_SUBSTITUTE ) . '</pre>
</div>';
}

Expand Down
2 changes: 1 addition & 1 deletion src/class-rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function get_all_options() {
$output[] = [
'name' => $option->option_name,
'plugin' => $this->map_plugin_to_options->get_plugin_name( $option->option_name ),
'value' => htmlentities( $option->option_value ),
'value' => htmlentities( $option->option_value, ENT_QUOTES | ENT_SUBSTITUTE ),
'size' => number_format( strlen( $option->option_value ) / 1024, 2 ),
'autoload' => $option->autoload,
'row_id' => 'option_' . $option->option_name,
Expand Down

0 comments on commit 0e723ec

Please sign in to comment.