Skip to content

Commit 7ec1aa1

Browse files
committed
Docs: Fix duplicate-word and spelling typos in comments and docblocks.
Developed in WordPress#12039. Props khokansardar, sabernhardt, sanayasir, tusharaddweb. Fixes #65384. git-svn-id: https://develop.svn.wordpress.org/trunk@62489 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 26543f2 commit 7ec1aa1

20 files changed

Lines changed: 24 additions & 24 deletions

src/js/_enqueues/deprecated/fakejshint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* JSHINT has some GPL Compatability issues, so we are faking it out and using esprima for validation
2+
* JSHINT has some GPL Compatibility issues, so we are faking it out and using esprima for validation
33
* Based on https://github.com/jquery/esprima/blob/gh-pages/demo/validate.js which is MIT licensed.
44
* This is now deprecated in favor of Espree.
55
*

src/js/_enqueues/wp/dashboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ jQuery( function( $ ) {
756756
*
757757
* @since 5.5.2
758758
*
759-
* @param {int} startDate The Unix timestamp in milliseconds when the the event starts.
760-
* @param {int} endDate The Unix timestamp in milliseconds when the the event ends.
759+
* @param {int} startDate The Unix timestamp in milliseconds when the event starts.
760+
* @param {int} endDate The Unix timestamp in milliseconds when the event ends.
761761
* @param {string} timeZone A time zone string or offset which is parsable by `wp.date.i18n()`.
762762
*
763763
* @returns {string}

src/js/_enqueues/wp/widgets/custom-html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ wp.customHtmlWidgets = ( function( $ ) {
307307

308308
/*
309309
* Create a container element for the widget control fields.
310-
* This is inserted into the DOM immediately before the the .widget-content
310+
* This is inserted into the DOM immediately before the .widget-content
311311
* element because the contents of this element are essentially "managed"
312312
* by PHP, where each widget update cause the entire element to be emptied
313313
* and replaced with the rendered output of WP_Widget::form() which is

src/wp-includes/block-supports/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function _wp_add_block_level_preset_styles( $pre_render, $block ) {
131131
)
132132
);
133133

134-
// include preset css classes on the the stylesheet.
134+
// include preset css classes on the stylesheet.
135135
$styles .= $theme_json_object->get_stylesheet(
136136
array( 'presets' ),
137137
null,

src/wp-includes/block-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function _block_template_render_without_post_block_context( $context ) {
452452
/**
453453
* Sets the current WP_Query to return auto-draft posts.
454454
*
455-
* The auto-draft status indicates a new post, so allow the the WP_Query instance to
455+
* The auto-draft status indicates a new post, so allow the WP_Query instance to
456456
* return an auto-draft post for template resolution when editing a new post.
457457
*
458458
* @access private

src/wp-includes/class-wp-customize-manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3056,7 +3056,7 @@ public function preserve_insert_changeset_post_content( $data, $postarr, $unsani
30563056
*
30573057
* The following re-formulates the logic from `wp_trash_post()` as done in
30583058
* `wp_publish_post()`. The reason for bypassing `wp_trash_post()` is that it
3059-
* will mutate the the `post_content` and the `post_name` when they should be
3059+
* will mutate the `post_content` and the `post_name` when they should be
30603060
* untouched.
30613061
*
30623062
* @since 4.9.0

src/wp-includes/class-wp-recovery-mode-email-service.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function send_recovery_mode_email( $rate_limit, $error, $extension ) {
132132
}
133133

134134
/**
135-
* Filters the support message sent with the the fatal error protection email.
135+
* Filters the support message sent with the fatal error protection email.
136136
*
137137
* @since 5.2.0
138138
*

src/wp-includes/class-wp-theme-json-data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct( $data = array( 'version' => WP_Theme_JSON::LATEST_S
4545
}
4646

4747
/**
48-
* Updates the theme.json with the the given data.
48+
* Updates the theme.json with the given data.
4949
*
5050
* @since 6.1.0
5151
*

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2693,7 +2693,7 @@ function wp_update_comment( $commentarr, $wp_error = false ) {
26932693
*/
26942694
$data = apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr );
26952695

2696-
// Do not carry on on failure.
2696+
// Do not continue on failure.
26972697
if ( is_wp_error( $data ) ) {
26982698
if ( $wp_error ) {
26992699
return $data;

src/wp-includes/fonts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function wp_print_font_faces( $fonts = array() ) {
5555
}
5656

5757
/**
58-
* Generates and prints font-face styles defined the the theme style variations.
58+
* Generates and prints font-face styles defined in the theme style variations.
5959
*
6060
* @since 6.7.0
6161
*

0 commit comments

Comments
 (0)