From c280bf82fbe5d3664792f78872e7fe2eb1c263d7 Mon Sep 17 00:00:00 2001 From: devansh016 Date: Tue, 3 Nov 2026 13:00:32 +0530 Subject: [PATCH] Docs: Fix duplicate words and a typo in inline comments. Removes words repeated across line breaks in comments in media.js, WP_Customize_Manager, WP_Query and functions.php, and corrects "flate" to "flat" in WP_Tax_Query. See #65860. --- src/js/_enqueues/wp/widgets/media.js | 2 +- src/wp-includes/class-wp-customize-manager.php | 4 ++-- src/wp-includes/class-wp-query.php | 2 +- src/wp-includes/class-wp-tax-query.php | 2 +- src/wp-includes/functions.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/js/_enqueues/wp/widgets/media.js b/src/js/_enqueues/wp/widgets/media.js index ce366361d5862..45e827d4baac2 100644 --- a/src/js/_enqueues/wp/widgets/media.js +++ b/src/js/_enqueues/wp/widgets/media.js @@ -276,7 +276,7 @@ wp.mediaWidgets = ( function( $ ) { * * Overrides the {EmbedLink#renderFail()} method to prevent showing the "Link Text" field. * The element is getting display:none in the stylesheet, but the underlying method uses - * uses {jQuery.fn.show()} which adds an inline style. This avoids the need for !important. + * {jQuery.fn.show()} which adds an inline style. This avoids the need for !important. * * @return {void} */ diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 01856847353c4..9076b25e08862 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -248,7 +248,7 @@ final class WP_Customize_Manager { * * @type null|string|false $changeset_uuid Changeset UUID, the `post_name` for the customize_changeset post containing the customized state. * Defaults to `null` resulting in a UUID to be immediately generated. If `false` is provided, then - * then the changeset UUID will be determined during `after_setup_theme`: when the + * the changeset UUID will be determined during `after_setup_theme`: when the * `customize_changeset_branching` filter returns false, then the default UUID will be that * of the most recent `customize_changeset` post that has a status other than 'auto-draft', * 'publish', or 'trash'. Otherwise, if changeset branching is enabled, then a random UUID will be used. @@ -3227,7 +3227,7 @@ public function handle_changeset_trash_request() { * the 'customize' meta cap which then maps to 'edit_theme_options'. This is currently * required in core for `wp_create_post_autosave()` because it will call * `_wp_translate_postdata()` which in turn will check if a user can 'edit_post', but the - * the caps for the customize_changeset post type are all mapping to the meta capability. + * caps for the customize_changeset post type are all mapping to the meta capability. * This should be able to be removed once #40922 is addressed in core. * * @since 4.9.0 diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php index 88981421ff937..34657f59edc13 100644 --- a/src/wp-includes/class-wp-query.php +++ b/src/wp-includes/class-wp-query.php @@ -792,7 +792,7 @@ public function fill_query_vars( $query_vars ) { * exclude posts matching that term. Eg, 'pillow -sofa' will * return posts containing 'pillow' but not 'sofa'. The * character used for exclusion can be modified using the - * the 'wp_query_search_exclusion_prefix' filter. + * 'wp_query_search_exclusion_prefix' filter. * @type string[] $search_columns Array of column names to be searched. Accepts 'post_title', * 'post_excerpt' and 'post_content'. Default empty array. * @type int $second Second of the minute. Default empty. Accepts numbers 0-59. 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/functions.php b/src/wp-includes/functions.php index f7baf953bcbcd..2586d38da4c4a 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2571,7 +2571,7 @@ function _wp_upload_dir( $time = null ) { * * Rather than UPLOADS, we actually use BLOGUPLOADDIR if it is set, as it is absolute. * (And it will be set, see ms_upload_constants().) Otherwise, UPLOADS can be used, as - * as it is relative to ABSPATH. For the final piece: when UPLOADS is used with ms-files + * it is relative to ABSPATH. For the final piece: when UPLOADS is used with ms-files * rewriting in multisite, the resulting URL is /files. (#WP22702 for background.) */