From ab08a69ee5e7ecdc56e4762bf74fa1e166c3cc95 Mon Sep 17 00:00:00 2001 From: Erik <11491369+kebbet@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:18:26 +0100 Subject: [PATCH 1/4] Typo in block-patterns.php --- lib/compat/wordpress-5.9/block-patterns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-5.9/block-patterns.php b/lib/compat/wordpress-5.9/block-patterns.php index 8cfc60260993bf..c41051a1ed1770 100644 --- a/lib/compat/wordpress-5.9/block-patterns.php +++ b/lib/compat/wordpress-5.9/block-patterns.php @@ -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 ); From 3bf206828eaa66ed570f476e90c8eef05e6b332f Mon Sep 17 00:00:00 2001 From: Erik <11491369+kebbet@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:19:17 +0100 Subject: [PATCH 2/4] Typos in `block-template.php` --- lib/compat/wordpress-5.9/block-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-5.9/block-template.php b/lib/compat/wordpress-5.9/block-template.php index 1ecc2887d9f0a6..155e9d88809b72 100644 --- a/lib/compat/wordpress-5.9/block-template.php +++ b/lib/compat/wordpress-5.9/block-template.php @@ -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 ); } From a8d15f3258d11ec796c927f1d2681d45fa18994d Mon Sep 17 00:00:00 2001 From: Erik <11491369+kebbet@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:20:14 +0100 Subject: [PATCH 3/4] Typos in `blocks.php` --- lib/compat/wordpress-5.9/blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-5.9/blocks.php b/lib/compat/wordpress-5.9/blocks.php index fc1b9e5f0dc2e9..22012e77914baa 100644 --- a/lib/compat/wordpress-5.9/blocks.php +++ b/lib/compat/wordpress-5.9/blocks.php @@ -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. */ From ce430dda1e1453f4a7e4d641c5c065132e519765 Mon Sep 17 00:00:00 2001 From: Erik <11491369+kebbet@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:21:05 +0100 Subject: [PATCH 4/4] Typo in `class-wp-theme-json-resolver-gutenberg.php` --- .../wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php b/lib/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php index 94e01a35f3857f..8223e7e79d73df 100644 --- a/lib/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php +++ b/lib/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php @@ -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.