Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docblock typos #38067

Merged
merged 4 commits into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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