Skip to content

Commit c1e8752

Browse files
Docs: Correct some typos in JS inline comments and DocBlocks.
Props parinpanjari, dmsnell, westonruter, SergeyBiryukov. Fixes #65112. git-svn-id: https://develop.svn.wordpress.org/trunk@62431 602fd350-edb4-49c9-b593-d223f7449a82
1 parent baf80d4 commit c1e8752

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/js/_enqueues/lib/admin-bar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
};
418418
}
419419

420-
// Get the closest matching elent.
420+
// Get the closest matching element.
421421
for ( ; el && el !== document; el = el.parentNode ) {
422422
if ( el.matches( selector ) ) {
423423
return el;

src/js/_enqueues/wp/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@
983983
},
984984

985985
/**
986-
* Extend Backbone.Collection.sync to add nince and pagination support.
986+
* Extend Backbone.Collection.sync to add nonce and pagination support.
987987
*
988988
* Set nonce header before every Backbone sync.
989989
*
@@ -1288,7 +1288,7 @@
12881288
parentName = wp.api.utils.extractRoutePart( modelRoute.index, 1, routeModel.get( 'versionString' ), false ),
12891289
routeEnd = wp.api.utils.extractRoutePart( modelRoute.index, 1, routeModel.get( 'versionString' ), true );
12901290

1291-
// Clear the parent part of the rouite if its actually the version string.
1291+
// Clear the parent part of the route if it's actually the version string.
12921292
if ( parentName === routeModel.get( 'versionString' ) ) {
12931293
parentName = '';
12941294
}

src/js/_enqueues/wp/customize/controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@
590590
return deferred.reject( { code: 'illegal_status_in_changeset_update' } ).promise();
591591
}
592592

593-
// Dates not beung allowed for revisions are is a technical limitation of post revisions.
593+
// Dates not being allowed for revisions is a technical limitation of post revisions.
594594
if ( submittedArgs.date && submittedArgs.autosave ) {
595595
return deferred.reject( { code: 'illegal_autosave_with_date_gmt' } ).promise();
596596
}

src/js/_enqueues/wp/customize/nav-menus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3539,7 +3539,7 @@
35393539

35403540
/**
35413541
* Apply sanitize_text_field()-like logic to the supplied name, returning a
3542-
* "unnammed" fallback string if the name is then empty.
3542+
* "unnamed" fallback string if the name is then empty.
35433543
*
35443544
* @alias wp.customize.Menus~displayNavMenuName
35453545
*

0 commit comments

Comments
 (0)