Skip to content

Commit

Permalink
Docblock typos (#38067)
Browse files Browse the repository at this point in the history
* Typo in block-patterns.php

* Typos in `block-template.php`

* Typos in `blocks.php`

* Typo in `class-wp-theme-json-resolver-gutenberg.php`
  • Loading branch information
kebbet authored Jan 19, 2022
1 parent ecd3633 commit b27306c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-5.9/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function _load_remote_featured_patterns() {
foreach ( $patterns as $pattern ) {
$pattern_name = sanitize_title( $pattern['title'] );
$registry = WP_Block_Patterns_Registry::get_instance();
// Some patterns might be already registerd as `core patterns with the `core` prefix.
// Some patterns might be already registered as `core patterns with the `core` prefix.
$is_registered = $registry->is_registered( $pattern_name ) || $registry->is_registered( "core/$pattern_name" );
if ( ! $is_registered ) {
register_block_pattern( $pattern_name, (array) $pattern );
Expand Down
2 changes: 1 addition & 1 deletion lib/compat/wordpress-5.9/block-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function gutenberg_locate_block_template( $template, $type, array $templates ) {
);
$index = array_search( $relative_template_path, $templates, true );

// If the template hiearchy algorithm has successfully located a PHP template file,
// If the template hierarchy algorithm has successfully located a PHP template file,
// we will only consider block templates with higher or equal specificity.
$templates = array_slice( $templates, 0, $index + 1 );
}
Expand Down
2 changes: 1 addition & 1 deletion lib/compat/wordpress-5.9/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* It's used in QueryPaginationNext and QueryPaginationPrevious blocks.
*
* @param WP_Block $block Block instance.
* @param boolean $is_next Flag for hanlding `next/previous` blocks.
* @param boolean $is_next Flag for handling `next/previous` blocks.
*
* @return string|null Returns the constructed WP_Query arguments.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static function get_core_data() {
* Data from theme.json will be backfilled from existing
* theme supports, if any. Note that if the same data
* is present in theme.json and in theme supports,
* the theme.json takes precendence.
* the theme.json takes precedence.
*
* @param array $deprecated Deprecated argument.
* @return WP_Theme_JSON_Gutenberg Entity that holds theme data.
Expand Down

0 comments on commit b27306c

Please sign in to comment.