Skip to content

Commit

Permalink
Set specific flags for html_entity_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkamp committed Jan 16, 2025
1 parent f88648c commit c92acd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Ads/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function get_connected_account(): array {
$status = [
'id' => $id,
'currency' => $this->options->get( OptionsInterface::ADS_ACCOUNT_CURRENCY ),
'symbol' => html_entity_decode( get_woocommerce_currency_symbol( $this->options->get( OptionsInterface::ADS_ACCOUNT_CURRENCY ) ) ),
'symbol' => html_entity_decode( get_woocommerce_currency_symbol( $this->options->get( OptionsInterface::ADS_ACCOUNT_CURRENCY ) ), ENT_QUOTES ),
'status' => $id ? 'connected' : 'disconnected',
];

Expand Down
2 changes: 1 addition & 1 deletion src/MerchantCenter/MerchantStatuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ protected function get_product_issues( array $statuses ): array {
}

$product_issue_template = [
'product' => html_entity_decode( $wc_product->get_name() ),
'product' => html_entity_decode( $wc_product->get_name(), ENT_QUOTES ),
'product_id' => $wc_product_id,
'created_at' => $created_at,
'applicable_countries' => [],
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/MerchantCenter/MerchantStatusesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ function ( $value ) use ( $variable_product ) {
$this->merchant_issue_query->expects( $this->once() )->method( 'update_or_insert' )->with(
[
[
'product' => html_entity_decode( $product_1->get_name() ),
'product' => html_entity_decode( $product_1->get_name(), ENT_QUOTES ),
'product_id' => $product_1->get_id(),
'created_at' => $this->merchant_statuses->get_cache_created_time()->format( 'Y-m-d H:i:s' ),
'applicable_countries' => json_encode( [ 'ES' ] ),
Expand Down

0 comments on commit c92acd5

Please sign in to comment.