Make WordPress Core

Changeset 62431


Ignore:
Timestamp:
05/29/2026 11:24:22 PM (5 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct some typos in JS inline comments and DocBlocks.

Props parinpanjari, dmsnell, westonruter, SergeyBiryukov.
Fixes #65112.

Location:
trunk/src/js/_enqueues
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/lib/admin-bar.js

    r58133 r62431  
    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 ) ) {
  • trunk/src/js/_enqueues/wp/api.js

    r55044 r62431  
    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.
    … …  
    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 = '';
  • trunk/src/js/_enqueues/wp/customize/controls.js

    r60785 r62431  
    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();
  • trunk/src/js/_enqueues/wp/customize/nav-menus.js

    r60815 r62431  
    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
Note: See TracChangeset for help on using the changeset viewer.