Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#48676 closed defect (bug) (fixed)

Correct spelling of sub-class > subclass and over-ride/over-ridden > override/overridden

Reported by: garrett-eclipse's profile garrett-eclipse Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.4 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: docs, ui-copy Cc:

Description

Hello,

While updating #46418 I noticed the use of over-ridden and sub-class which are more appropriate as overridden and subclass.

For subclass if you look up OOP languages (PHP/Java/etc) all official documentation uses subclass without a hyphen;
https://www.php.net/manual/en/language.oop5.inheritance.php

For override;

In general, use a hyphen to separate repeated letters in a compound word - re-emergence, co-operative, film-maker, night-time - but there are some exceptions, including overrun, override, overrule, underrate, withhold. As usual, consult the Oxford English Dictionary if in doubt.

Reference - https://www.bbc.co.uk/academy/en/articles/art20130702112133530

Patch incoming

Attachments (1)

48676.diff (3.6 KB) - added by garrett-eclipse 5 years ago.
Patch to replace hyphenated words sub-class/over-ride/over-ridden with their proper spelling subclass/override/overridden

Download all attachments as: .zip

Change History (3)

@garrett-eclipse
5 years ago

Patch to replace hyphenated words sub-class/over-ride/over-ridden with their proper spelling subclass/override/overridden

#1 @SergeyBiryukov
5 years ago

  • Component changed from I18N to General
  • Focuses docs added
  • Milestone changed from Awaiting Review to 5.4
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @SergeyBiryukov
5 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 46739:

Docs: Correct spelling of "subclass" and "overridden" in various docblocks and error messages.

Props garrett-eclipse.
Fixes #48676.

Note: See TracTickets for help on using tickets.