Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove string from calypso apps to leave only new string #92494

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ import LaunchWpcomWelcomeTour from './welcome-tour/tour-launch';
let unlock;
try {
unlock = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
window.wpcomGutenberg?.pluginVersion?.startsWith( 'v18.7' )
? 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'
: 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',
'@wordpress/edit-site'
).unlock;
} catch ( error ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export const getUnlock = () => {
let unlock: ( object: any ) => any | undefined;
try {
unlock = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
( window as any ).wpcomGutenberg?.pluginVersion?.startsWith( 'v18.7' )
? 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'
: 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',
'@wordpress/edit-site'
).unlock;
return unlock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ import tracksRecordEvent from './track-record-event';
let unlock: ( object: any ) => any | undefined;
try {
unlock = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
( window as any ).wpcomGutenberg?.pluginVersion?.startsWith( 'v18.7' )
? 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'
: 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',
'@wordpress/edit-site'
).unlock;
} catch ( error ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ import type { RenderedStyle } from '../types';
import './block-renderer-container.scss';

const { unlock } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
( window as any ).wpcomGutenberg?.pluginVersion?.startsWith( 'v18.7' )
? 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'
: 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',
'@wordpress/block-editor'
);

Expand Down
5 changes: 1 addition & 4 deletions packages/global-styles/src/gutenberg-bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ import { isPlainObject } from 'is-plain-object';
import type { GlobalStylesObject, GlobalStylesContextObject } from '../types';

const { unlock } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
( window as any ).wpcomGutenberg?.pluginVersion?.startsWith( 'v18.7' )
? 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'
: 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',
'@wordpress/block-editor'
);

Expand Down
Loading