Skip to content

Commit

Permalink
Update notice content
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieur-z committed May 23, 2024
1 parent e5429c7 commit 39e9f61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 2 additions & 4 deletions projects/plugins/jetpack/_inc/client/writing/custom-css.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,14 @@ const CustomizerLink = ( { children, siteAdminUrl } ) => (
export const StartFreshDeprecationWarning = ( { siteAdminUrl } ) =>
createInterpolateElement(
__(
"The <i>Start Fresh</i> option in the <a1>CSS customization panel</a1> is enabled, which means the theme's original CSS is not applied. <b>This option will no longer be supported after August 6, 2024.</b> and you'll need to modify your <a2>theme stylesheet</a2>.",
"The <i>Start Fresh</i> option in the <a1>CSS customization panel</a1> is enabled, which means the theme's original CSS is not applied. <b>This option will no longer be supported after August 6, 2024.</b> <a2>See how to keep your site intact</a2>.",
'jetpack'
),
{
i: <i />,
b: <b />,
a1: <CustomizerLink siteAdminUrl={ siteAdminUrl } />,
a2: (
<ExternalLink href="https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/" />
),
a2: <ExternalLink href={ getRedirectUrl( 'jetpack-support-custom-css' ) } />,
}
);

Expand Down
5 changes: 3 additions & 2 deletions projects/plugins/jetpack/modules/custom-css/custom-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files.

use Automattic\Jetpack\Assets;
use Automattic\Jetpack\Redirect;

/**
* Alternate Custom CSS source for 4.7 compat.
Expand Down Expand Up @@ -1020,11 +1021,11 @@ public static function display_frontend_warning() {
sprintf(
// translators: 1: URL to the CSS customization panel, 2: URL to the theme stylesheet documentation.
__(
'The <i>Start Fresh</i> option in the <a href="%1$s">CSS customization panel</a> is enabled, which means the theme\'s original CSS is not applied. <b>This option will no longer be supported after August 6, 2024</b> and you\'ll need to modify your <a href="%2$s">theme stylesheet</a>.',
'The <i>Start Fresh</i> option in the <a href="%1$s">CSS customization panel</a> is enabled, which means the theme\'s original CSS is not applied. <b>This option will no longer be supported after August 6, 2024.</b> <a href="%2$s">See how to keep your site intact.</a>',
'jetpack'
),
esc_url( admin_url( 'customize.php?autofocus%5Bsection%5D=custom_css' ) ),
esc_url( 'https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/' )
esc_url( Redirect::get_url( 'jetpack-support-custom-css' ) )
),
array(
'i' => array(),
Expand Down

0 comments on commit 39e9f61

Please sign in to comment.