Skip to content

Commit

Permalink
ETK: fix localizing global styles support URL (#85637)
Browse files Browse the repository at this point in the history
  • Loading branch information
simison authored Dec 21, 2023
1 parent 55add55 commit 18ac561
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -487,13 +487,18 @@ function wpcom_display_global_styles_launch_bar( $bar_controls ) {
</div>
<div class="launch-bar-global-styles-message">
<?php
$support_url = function_exists( 'localized_wpcom_url' )
? localized_wpcom_url( 'https://wordpress.com/support/using-styles/' )
// phpcs:ignore WPCOM.I18nRules.LocalizedUrl.LocalizedUrlAssignedToVariable
: 'https://wordpress.com/support/using-styles/';

$message = sprintf(
/* translators: %1$s - documentation URL, %2$s - the name of the required plan */
__(
'Your site includes <a href="%1$s" target="_blank">premium styles</a> that are only visible to visitors after upgrading to the %2$s plan or higher.',
'full-site-editing'
),
'https://wordpress.com/support/using-styles/',
$support_url,
get_store_product( WPCOM_VALUE_BUNDLE )->product_name
);
echo sprintf(
Expand Down

0 comments on commit 18ac561

Please sign in to comment.