Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit ef84602

Browse files
authored
Fix esc_html error in footer pattern (#9704)
1 parent 010baaa commit ef84602

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

patterns/footer-with-3-menus.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,16 @@
5656

5757
<!-- wp:paragraph {"align":"right","style":{"typography":{"fontSize":"12px"}}} -->
5858
<p class="has-text-align-right" style="font-size:12px">
59-
<?php echo sprintf(
60-
__( 'Powered by %s with %s', 'woo-gutenberg-products-block' ),
61-
'<a href="https://wordpress.org">WordPress</a>',
62-
'<a href="https://woocommerce.com">WooCommerce</a>'
63-
) ?>
59+
<?php
60+
echo sprintf(
61+
esc_html(
62+
/* translators: Footer powered by text. %1$s being WordPress, %2$s being WooCommerce */
63+
__( 'Powered by %1$s with %2$s', 'woo-gutenberg-products-block' )
64+
),
65+
'<a href="https://wordpress.org">WordPress</a>',
66+
'<a href="https://woocommerce.com">WooCommerce</a>'
67+
);
68+
?>
6469
</p>
6570
<!-- /wp:paragraph -->
6671
</div>

0 commit comments

Comments
 (0)