Skip to content

Commit

Permalink
Fix different typos in inline comments, deprecation warnings and vari…
Browse files Browse the repository at this point in the history
…able names. (#32474)
  • Loading branch information
desaiuditd authored Jun 7, 2021
1 parent d4e9c65 commit 4c3300c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function useAutosavePurge() {

function LocalAutosaveMonitor() {
const { autosave } = useDispatch( editorStore );
const deferedAutosave = useCallback( () => {
const deferredAutosave = useCallback( () => {
requestIdleCallback( () => autosave( { local: true } ) );
}, [] );
useAutosaveNotice();
Expand All @@ -185,7 +185,7 @@ function LocalAutosaveMonitor() {
return (
<AutosaveMonitor
interval={ localAutosaveInterval }
autosave={ deferedAutosave }
autosave={ deferredAutosave }
/>
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function EditorProvider( {
} = useDispatch( editorStore );
const { createWarningNotice } = useDispatch( noticesStore );

// Iniitialize and tear down the editor.
// Initialize and tear down the editor.
// Ideally this should be synced on each change and not just something you do once.
useLayoutEffect( () => {
// Assume that we don't need to initialize in the case of an error recovery.
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function __experimentalRequestPostUpdateFinish( options = {} ) {
export function updatePost() {
deprecated( "wp.data.dispatch( 'core/editor' ).updatePost", {
since: '5.7',
alternative: 'User the core entitires store instead',
alternative: 'Use the core entities store instead',
} );
return {
type: 'DO_NOTHING',
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ export function isEditedPostDateFloating( state ) {

// This should be the status of the persisted post
// It shouldn't use the "edited" status otherwise it breaks the
// infered post data floating status
// inferred post data floating status
// See https://github.com/WordPress/gutenberg/issues/28083
const status = getCurrentPost( state ).status;
if (
Expand Down

0 comments on commit 4c3300c

Please sign in to comment.