Skip to content

Commit

Permalink
Docs: Typo corrections in class-wp-theme-json docblocks.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
audrasjb committed Feb 17, 2022
1 parent aa65a85 commit 37849d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ public function merge( $incoming ) {
}

/**
* Returns whether a presets should be overriden or not.
* Returns whether a presets should be overridden or not.
*
* @since 5.9.0
*
Expand All @@ -1605,8 +1605,8 @@ protected static function should_override_preset( $theme_json, $path, $override
* 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.
Expand Down Expand Up @@ -1700,7 +1700,7 @@ protected function get_name_from_defaults( $slug, $base_path ) {
* @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 ) {
Expand Down

0 comments on commit 37849d4

Please sign in to comment.