Skip to content
Closed
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 src/js/_enqueues/wp/backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/js/_enqueues/wp/editor/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/
Expand Down Expand Up @@ -1044,7 +1044,7 @@ window.wp = window.wp || {};
// Unmark special paragraph closing tags.
html = html.replace( /<\/p#>/g, '</p>\n' );

// Pad remaining <p> tags whit a line break.
// Pad remaining <p> tags with a line break.
html = html.replace( /\s*(<p [^>]+>[\s\S]*?<\/p>)/g, '\n$1' );

// Trim.
Expand Down
4 changes: 2 additions & 2 deletions src/js/_enqueues/wp/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down Expand Up @@ -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 );
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/admin-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/block-supports/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-tax-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ) {
Expand Down
22 changes: 11 additions & 11 deletions src/wp-includes/kses.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) {
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 0 additions & 2 deletions src/wp-includes/sitemaps/class-wp-sitemaps-renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down
Loading