Docs: Typo corrections in class-wp-theme-json docblocks.

Props kebbet, hellofromtonya.
Merges [52692] to the 5.9 branch.
See #54729.


git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52758 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-02-17 17:20:27 +00:00
parent aa65a85a94
commit 37849d4e6d

View File

@ -1587,7 +1587,7 @@ class WP_Theme_JSON {
}
/**
* Returns whether a presets should be overriden or not.
* Returns whether a presets should be overridden or not.
*
* @since 5.9.0
*
@ -1605,8 +1605,8 @@ class WP_Theme_JSON {
* The relationship between whether to override the defaults
* and whether the defaults are enabled is inverse:
*
* - If defaults are enabled => theme presets should not be overriden
* - If defaults are disabled => theme presets should be overriden
* - If defaults are enabled => theme presets should not be overridden
* - If defaults are disabled => theme presets should be overridden
*
* For example, a theme sets defaultPalette to false,
* making the default palette hidden from the user.
@ -1700,7 +1700,7 @@ class WP_Theme_JSON {
* @since 5.9.0
*
* @param array $node The node with the presets to validate.
* @param array $slugs The slugs that should not be overriden.
* @param array $slugs The slugs that should not be overridden.
* @return array The new node.
*/
protected static function filter_slugs( $node, $slugs ) {