docs: fix 13 typos in code comments and docblocks - #10
Open
Avicennasis wants to merge 1 commit into
Open
Avicennasis wants to merge 1 commit into
Avicennasis wants to merge 1 commit into
Conversation
Spelling and grammar corrections in PHP comments and docblocks only. No
identifiers, translation strings or behaviour are changed.
Deliberately left unchanged, because renaming them would be a breaking
API change:
- module::loadDependancies() (src/module.php)
- field::$santizer_callback (src/settings/field.php) - only the comment
above it is corrected
Seven of these were reported by an automated scan; six more of the same
kind were found alongside them (owa-plugin.php: 'ot' -> 'to', 'Singelton',
'uneeded', 'Trackes'; settings/page.php: 'boollean', "doesn't allows").
Signed-off-by: Léon Avic Simmons <Avicennasis@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Spelling and grammar fixes in PHP comments and docblocks only. No identifier, no translation string and no behaviour is changed.
Reported by an automated spell scan (7 applied, 2 declined)
// we need ot init the settings page objects here->to// as they are needed by two the callbacks to seperate WordPress Hooks ...->by the two callbacks to separate ...(the reportedseperate, plus the transposedtwo theon the same line)// iterate throught group of settings fields.->through// iterate throug thhe fields in the group->through the// regsiter the settings pages with WordPress->register* Inititalizes Settings Page Objects->Initializes// name of the santizer callback to be used->sanitizerTwo further reported items are not applied, because they are identifiers and renaming them would be a breaking API change:
module::loadDependancies()insrc/module.phpfield::$santizer_callbackinsrc/settings/field.php- only the comment above it is corrected, so the property name is untouchedFound alongside them, not in the original report (6)
// bail if this isn't a request type that OWA needs ot be loaded on.->to(the sameottypo as above)* Singelton->Singleton// remove this if uneeded->unneeded* Trackes new and edited post actions.->Tracks// set a false value in case it's a boollean type->boolean// because it doesn't allows for filtered output->doesn't allowThe copyright/licence header in
owa-plugin.phpis untouched. Each file was edited byte-wise with an occurrence-count and length-delta assertion, so the diff is exactly one line per fix (4 files, 13 insertions, 13 deletions).