diff --git a/src/js/_enqueues/wp/backbone.js b/src/js/_enqueues/wp/backbone.js index 2c8e62d23cca3..5e71d2b21c0f5 100644 --- a/src/js/_enqueues/wp/backbone.js +++ b/src/js/_enqueues/wp/backbone.js @@ -480,7 +480,7 @@ window.wp = window.wp || {}; /** * The base view class. * - * This extends the backbone view to have a build-in way to use subviews. This + * This extends the backbone view to have a built-in way to use subviews. This * makes it easier to have nested views. * * @since 3.5.0 diff --git a/src/js/_enqueues/wp/editor/base.js b/src/js/_enqueues/wp/editor/base.js index 23b948d860508..c073929d60a10 100644 --- a/src/js/_enqueues/wp/editor/base.js +++ b/src/js/_enqueues/wp/editor/base.js @@ -133,7 +133,7 @@ window.wp = window.wp || {}; /* * Override the editor's focus method to conditionally skip * focusing the editor based on the input device. Note that - * editor.focus() aleady uses a `skipFocus` parameter. When + * editor.focus() already uses a `skipFocus` parameter. When * it is true, it calls activateEditor(editor) instead of * focusEditor(editor). */ @@ -1044,7 +1044,7 @@ window.wp = window.wp || {}; // Unmark special paragraph closing tags. html = html.replace( /<\/p#>/g, '
\n' ); - // Pad remainingtags whit a line break. + // Pad remaining
tags with a line break. html = html.replace( /\s*(
]+>[\s\S]*?<\/p>)/g, '\n$1' ); // Trim. diff --git a/src/js/_enqueues/wp/theme.js b/src/js/_enqueues/wp/theme.js index 4939f453ace4f..7140dec3d54c6 100644 --- a/src/js/_enqueues/wp/theme.js +++ b/src/js/_enqueues/wp/theme.js @@ -1364,7 +1364,7 @@ themes.view.Themes = wp.Backbone.View.extend({ // Trigger a route update for the current model. self.theme.trigger( 'theme:expand', nextModel.cid ); - // Set focus again to the 'Next' navigation button after the view fully re-rendeers. + // Set focus again to the 'Next' navigation button after the view fully re-renders. $( '.theme-header .right' ).trigger( 'focus' ); themes.announceThemeDebounced( nextModel ); } @@ -1401,7 +1401,7 @@ themes.view.Themes = wp.Backbone.View.extend({ // Trigger a route update for the current model. self.theme.trigger( 'theme:expand', previousModel.cid ); - // Set focus again to the 'Previous' navigation button after the view fully re-rendeers. + // Set focus again to the 'Previous' navigation button after the view fully re-renders. $( '.theme-header .left' ).trigger( 'focus' ); themes.announceThemeDebounced( previousModel ); } diff --git a/src/wp-admin/css/admin-menu.css b/src/wp-admin/css/admin-menu.css index 721f39fdc568d..c51dbfb5b6b24 100644 --- a/src/wp-admin/css/admin-menu.css +++ b/src/wp-admin/css/admin-menu.css @@ -791,7 +791,7 @@ li#wp-admin-bar-menu-toggle { border: none; } - /* Remove submenu headers and adjust sub meu*/ + /* Remove submenu headers and adjust submenu */ #adminmenu .wp-submenu .wp-submenu-head { display: none; } diff --git a/src/wp-includes/block-supports/settings.php b/src/wp-includes/block-supports/settings.php index 6b1eac6defc7f..92f3b706b2321 100644 --- a/src/wp-includes/block-supports/settings.php +++ b/src/wp-includes/block-supports/settings.php @@ -74,7 +74,7 @@ function _wp_add_block_level_presets_class( $block_content, $block ) { * @return null */ function _wp_add_block_level_preset_styles( $pre_render, $block ) { - // Return early if the block has not support for descendent block styles. + // Return early if the block does not support descendant block styles. $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] ); if ( ! block_has_support( $block_type, '__experimentalSettings', false ) ) { return null; diff --git a/src/wp-includes/class-wp-tax-query.php b/src/wp-includes/class-wp-tax-query.php index 7e254b1275c9f..e10915251365c 100644 --- a/src/wp-includes/class-wp-tax-query.php +++ b/src/wp-includes/class-wp-tax-query.php @@ -156,7 +156,7 @@ public function sanitize_query( $queries ) { $cleaned_query[] = $cleaned_clause; /* - * Keep a copy of the clause in the flate + * Keep a copy of the clause in the flat * $queried_terms array, for use in WP_Query. */ if ( ! empty( $cleaned_clause['taxonomy'] ) && 'NOT IN' !== $cleaned_clause['operator'] ) { diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php index c68b71fcc1527..065d984b35db3 100644 --- a/src/wp-includes/kses.php +++ b/src/wp-includes/kses.php @@ -1022,12 +1022,12 @@ function wp_kses( $content, $allowed_html, $allowed_protocols = array() ) { * @access private This function should not be called directly, as it serves a transitionary * role while replacing the implementation of {@see \wp_kses()}. * - * @param string $content Text content to filter. - * @param array[]|string $allowed_html An array of allowed HTML elements and attributes, - * or a context name such as 'post'. See wp_kses_allowed_html() - * for the list of accepted context names. - * @param string[] $allowed_protocols Optional. Array of allowed URL protocols. - * Defaults to the result of wp_allowed_protocols(). + * @param string $content Text content to filter. + * @param array[]|string $allowed_html An array of allowed HTML elements and attributes, + * or a context name such as 'post'. See wp_kses_allowed_html() + * for the list of accepted context names. + * @param string[] $allowed_protocols Optional. Array of allowed URL protocols. + * Defaults to the result of wp_allowed_protocols(). * @return string Filtered content containing only the allowed HTML. */ function wp_sanitize_html_kses( $content, $allowed_html, $allowed_protocols = array() ) { @@ -1230,9 +1230,9 @@ public function set_attribute( $name, $value ): bool { * @since 7.2.0 * @access private * - * @param bool $is_inside_mathml_text_integration_point - * @param bool $is_inside_svg_html_integration_point - * @return bool + * @param bool $is_inside_mathml_text_integration_point Whether the token is inside a MathML text integration point. + * @param bool $is_inside_svg_html_integration_point Whether the token is inside an SVG HTML integration point. + * @return bool Whether the current token risks escaping foreign content. */ private function could_escape_foreign_content( bool $is_inside_mathml_text_integration_point, bool $is_inside_svg_html_integration_point ): bool { $token_name = $this->get_token_name(); @@ -1370,7 +1370,7 @@ private function could_escape_foreign_content( bool $is_inside_mathml_text_integ * @since 7.2.0 * @access private * - * @param string $text Does a block comment delimiter exist in this string value? + * @param string $text Text to check for a block comment delimiter. * @return bool Whether a block comment delimiter of any kind was found in the given string. */ private static function contains_a_block_delimiter( string $text ): bool { @@ -1928,7 +1928,7 @@ public function sanitize() { if ( 'TITLE' === $token_name || 'TEXTAREA' === $token_name ) { /* * RCDATA nodes can be safely escaped, but this must be - * done after enqueing the update to avoid double-escaping. + * done after enqueuing the update to avoid double-escaping. */ $tag_maker->set_modifiable_text( $text ); $tag_maker->lexical_updates['modifiable text']->text = strtr( diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php index 7b3ae9d160d11..1be17d2dffbe0 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php @@ -659,7 +659,7 @@ public function create_item( $request ) { * uploaded-file handlers and the attachment is inserted by the shared code * in insert_attachment(). * - * @since 7.1.0 + * @since 7.2.0 * * @param string $url URL of the image to sideload. * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null. diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php index d0dd5fce4cd9c..32659e253e88c 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php @@ -664,7 +664,7 @@ protected function get_plugin_data( $plugin ) { } /** - * Get's the activation status for a plugin. + * Gets the activation status for a plugin. * * @since 5.5.0 * diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps-renderer.php b/src/wp-includes/sitemaps/class-wp-sitemaps-renderer.php index b1ae1db5cc6dd..8b15b04031b39 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps-renderer.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps-renderer.php @@ -58,7 +58,6 @@ public function get_sitemap_stylesheet_url() { /** * Filters the URL for the sitemap stylesheet. * - * If a falsey value is returned, no stylesheet will be used and * Following the deprecation of XSLT by browser manufacturers the * outcome of this filter is ignored. * @@ -86,7 +85,6 @@ public function get_sitemap_index_stylesheet_url() { /** * Filters the URL for the sitemap index stylesheet. * - * If a falsey value is returned, no stylesheet will be used and * Following the deprecation of XSLT by browser manufacturers the * outcome of this filter is ignored. *