Lint fixes
This commit is contained in:
parent
2b9fe30ecc
commit
2d3756a82c
|
@ -1,19 +1,23 @@
|
|||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
var consentString = 'I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.';
|
||||
import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
|
||||
|
||||
if (window.wcSettings && window.wcSettings.wpVersion) {
|
||||
// Parse the version string as a floating-point number
|
||||
const wpVersion = parseFloat(window.wcSettings.wpVersion);
|
||||
if ( ! isNaN( wpVersion ) && wpVersion >= 6.4 ) {
|
||||
consentString = 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.';
|
||||
}
|
||||
let consentString =
|
||||
'I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.';
|
||||
|
||||
if ( window.wcSettings && window.wcSettings.wpVersion ) {
|
||||
// Parse the version string as a floating-point number
|
||||
const wpVersion = parseFloat( window.wcSettings.wpVersion );
|
||||
if ( ! isNaN( wpVersion ) && wpVersion >= 6.4 ) {
|
||||
consentString =
|
||||
'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.';
|
||||
}
|
||||
}
|
||||
|
||||
import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
|
||||
export const {
|
||||
lock,
|
||||
unlock
|
||||
} = __dangerousOptInToUnstableAPIsOnlyForCoreModules(consentString, '@wordpress/edit-site');
|
||||
//# sourceMappingURL=lock-unlock.js.map
|
||||
export const { lock, unlock } =
|
||||
__dangerousOptInToUnstableAPIsOnlyForCoreModules(
|
||||
consentString,
|
||||
'@wordpress/edit-site'
|
||||
);
|
||||
//# sourceMappingURL=lock-unlock.js.map
|
||||
|
|
Loading…
Reference in New Issue