Skip to content

Commit

Permalink
Docs: Fix some typos on reference-guide data-core-block-editor.md. (W…
Browse files Browse the repository at this point in the history
…ordPress#68066)

Co-authored-by: jorgefilipecosta <[email protected]>
  • Loading branch information
jorgefilipecosta and jorgefilipecosta authored Dec 18, 2024
1 parent fad67dc commit b226cee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/reference-guides/data/data-core-block-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ Determines the items that appear in the available block transforms list.

Each item object contains what's necessary to display a menu item in the transform list and handle its selection.

The 'frecency' property is a heuristic (<https://en.wikipedia.org/wiki/Frecency>) that combines block usage frequenty and recency.
The 'frecency' property is a heuristic (<https://en.wikipedia.org/wiki/Frecency>) that combines block usage frequency and recency.

Items are returned ordered descendingly by their 'frecency'.

Expand Down Expand Up @@ -521,7 +521,7 @@ _Properties_

- _name_ `string`: The type of block.
- _attributes_ `?Object`: Attributes to pass to the newly created block.
- _attributesToCopy_ `?Array<string>`: Attributes to be copied from adjecent blocks when inserted.
- _attributesToCopy_ `?Array<string>`: Attributes to be copied from adjacent blocks when inserted.

### getDraggedBlockClientIds

Expand Down Expand Up @@ -580,7 +580,7 @@ Determines the items that appear in the inserter. Includes both static items (e.

Each item object contains what's necessary to display a button in the inserter and handle its selection.

The 'frecency' property is a heuristic (<https://en.wikipedia.org/wiki/Frecency>) that combines block usage frequenty and recency.
The 'frecency' property is a heuristic (<https://en.wikipedia.org/wiki/Frecency>) that combines block usage frequency and recency.

Items are returned ordered descendingly by their 'utility' and 'frecency'.

Expand Down
8 changes: 4 additions & 4 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,7 @@ const getItemFromVariation = ( state, item ) => ( variation ) => {
* Returns the calculated frecency.
*
* 'frecency' is a heuristic (https://en.wikipedia.org/wiki/Frecency)
* that combines block usage frequenty and recency.
* that combines block usage frequency and recency.
*
* @param {number} time When the last insert occurred as a UNIX epoch
* @param {number} count The number of inserts that have occurred.
Expand Down Expand Up @@ -2080,7 +2080,7 @@ const buildBlockTypeItem =
* inserter and handle its selection.
*
* The 'frecency' property is a heuristic (https://en.wikipedia.org/wiki/Frecency)
* that combines block usage frequenty and recency.
* that combines block usage frequency and recency.
*
* Items are returned ordered descendingly by their 'utility' and 'frecency'.
*
Expand Down Expand Up @@ -2236,7 +2236,7 @@ export const getInserterItems = createRegistrySelector( ( select ) =>
* transform list and handle its selection.
*
* The 'frecency' property is a heuristic (https://en.wikipedia.org/wiki/Frecency)
* that combines block usage frequenty and recency.
* that combines block usage frequency and recency.
*
* Items are returned ordered descendingly by their 'frecency'.
*
Expand Down Expand Up @@ -2400,7 +2400,7 @@ export const __experimentalGetAllowedBlocks = createSelector(
* @typedef {Object} WPDirectInsertBlock
* @property {string} name The type of block.
* @property {?Object} attributes Attributes to pass to the newly created block.
* @property {?Array<string>} attributesToCopy Attributes to be copied from adjecent blocks when inserted.
* @property {?Array<string>} attributesToCopy Attributes to be copied from adjacent blocks when inserted.
*/
export function getDirectInsertBlock( state, rootClientId = null ) {
if ( ! rootClientId ) {
Expand Down

0 comments on commit b226cee

Please sign in to comment.