[wp-trac] [WordPress Trac] #65112: Docs: Correct typos in JS inline comments and docblocks

WordPress Trac noreply at wordpress.org
Wed Apr 22 13:53:14 UTC 2026


#65112: Docs: Correct typos in JS inline comments and docblocks
--------------------------+-----------------------------
 Reporter:  parinpanjari  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Five typos exist in WordPress-authored JavaScript comments and docblocks
 under `src/js/_enqueues/`:

 1. `src/js/_enqueues/wp/api.js:986` — "add nince and pagination support"
    should be "nonce". (The next docblock line correctly uses "nonce",
    confirming the intent.)

 2. `src/js/_enqueues/wp/api.js:1291` — "Clear the parent part of the
    rouite if its actually the version string" should be "route" (and
    "its" → "it's"). Both are fixed in the attached patch.

 3. `src/js/_enqueues/wp/customize/controls.js:593` — "Dates not beung
    allowed for revisions..." should be "being".

 4. `src/js/_enqueues/wp/customize/nav-menus.js:3542` — docblock says
    `returning a "unnammed" fallback string` — should be "unnamed". The
    actual code at line 3553 correctly references `l10n.unnamed`, so the
    docblock is currently quoting the wrong spelling.

 5. `src/js/_enqueues/lib/admin-bar.js:420` — "Get the closest matching
    elent" should be "element".

 The attached patch updates only the authoritative `_enqueues` sources.
 The corresponding build artifacts under `src/wp-admin/js/` and
 `src/wp-includes/js/` are regenerated by `grunt` and are .gitignored.

 Adjacent issue (not included in this patch): line 593 of controls.js
 also contains an "are is" grammar error ("...for revisions are is a
 technical limitation..."). Happy to fold into this patch or address in
 a follow-up per committer preference.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65112>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list