diff --git a/packages/block-editor/src/components/block-styles/utils.js b/packages/block-editor/src/components/block-styles/utils.js index 7f738ab0fa923..f60a23a4287b2 100644 --- a/packages/block-editor/src/components/block-styles/utils.js +++ b/packages/block-editor/src/components/block-styles/utils.js @@ -11,7 +11,7 @@ import { _x } from '@wordpress/i18n'; /** * Returns the active style from the given className. * - * @param {Array} styles Block style variations. + * @param {Array} styles Block styles. * @param {string} className Class name * * @return {Object?} The active style. @@ -59,7 +59,7 @@ export function replaceActiveStyle( className, activeStyle, newStyle ) { * act as a fallback for when there is no active style applied to a block. The default item also serves * as a switch on the frontend to deactivate non-default styles. * - * @param {Array} styles Block style variations. + * @param {Array} styles Block styles. * * @return {Array} The style collection. */ @@ -83,7 +83,7 @@ export function getRenderedStyles( styles ) { /** * Returns a style object from a collection of styles where that style object is the default block style. * - * @param {Array} styles Block style variations. + * @param {Array} styles Block styles. * * @return {Object?} The default style object, if found. */ diff --git a/packages/blocks/README.md b/packages/blocks/README.md index 20930df1a3a9f..f78783f728339 100644 --- a/packages/blocks/README.md +++ b/packages/blocks/README.md @@ -692,7 +692,7 @@ _Parameters_ ### registerBlockStyle -Registers a new block style variation for the given block. +Registers a new block style for the given block. For more information on connecting the styles with CSS [the official documentation](/docs/reference-guides/block-api/block-styles.md#styles) @@ -970,7 +970,7 @@ _Returns_ ### unregisterBlockStyle -Unregisters a block style variation for the given block. +Unregisters a block style for the given block. _Usage_ diff --git a/packages/blocks/src/api/registration.js b/packages/blocks/src/api/registration.js index 903d9e7e00e32..f8f5ac996173b 100644 --- a/packages/blocks/src/api/registration.js +++ b/packages/blocks/src/api/registration.js @@ -656,7 +656,7 @@ export const hasChildBlocksWithInserterSupport = ( blockName ) => { }; /** - * Registers a new block style variation for the given block. + * Registers a new block style for the given block. * * For more information on connecting the styles with CSS [the official documentation](/docs/reference-guides/block-api/block-styles.md#styles) * @@ -691,7 +691,7 @@ export const registerBlockStyle = ( blockName, styleVariation ) => { }; /** - * Unregisters a block style variation for the given block. + * Unregisters a block style for the given block. * * @param {string} blockName Name of block (example: “core/latest-posts”). * @param {string} styleVariationName Name of class applied to the block. diff --git a/packages/blocks/src/store/reducer.js b/packages/blocks/src/store/reducer.js index 242876476f14f..6770dd6b67f26 100644 --- a/packages/blocks/src/store/reducer.js +++ b/packages/blocks/src/store/reducer.js @@ -105,7 +105,7 @@ export function blockTypes( state = {}, action ) { } /** - * Reducer managing the block style variations. + * Reducer managing the block styles. * * @param {Object} state Current state. * @param {Object} action Dispatched action.