Skip to content
Open
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/deprecated/fakejshint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* JSHINT has some GPL Compatability issues, so we are faking it out and using esprima for validation
* JSHINT has some GPL Compatibility issues, so we are faking it out and using esprima for validation
* Based on https://github.com/jquery/esprima/blob/gh-pages/demo/validate.js which is MIT licensed.
* This is now deprecated in favor of Espree.
*
Expand Down
4 changes: 2 additions & 2 deletions src/js/_enqueues/wp/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,8 @@ jQuery( function( $ ) {
*
* @since 5.5.2
*
* @param {int} startDate The Unix timestamp in milliseconds when the the event starts.
* @param {int} endDate The Unix timestamp in milliseconds when the the event ends.
* @param {int} startDate The Unix timestamp in milliseconds when the event starts.
* @param {int} endDate The Unix timestamp in milliseconds when the event ends.
* @param {string} timeZone A time zone string or offset which is parsable by `wp.date.i18n()`.
*
* @returns {string}
Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/wp/widgets/custom-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ wp.customHtmlWidgets = ( function( $ ) {

/*
* Create a container element for the widget control fields.
* This is inserted into the DOM immediately before the the .widget-content
* This is inserted into the DOM immediately before the .widget-content
* element because the contents of this element are essentially "managed"
* by PHP, where each widget update cause the entire element to be emptied
* and replaced with the rendered output of WP_Widget::form() which is
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 @@ -131,7 +131,7 @@ function _wp_add_block_level_preset_styles( $pre_render, $block ) {
)
);

// include preset css classes on the the stylesheet.
// include preset css classes on the stylesheet.
$styles .= $theme_json_object->get_stylesheet(
array( 'presets' ),
null,
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/block-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function _block_template_render_without_post_block_context( $context ) {
/**
* Sets the current WP_Query to return auto-draft posts.
*
* The auto-draft status indicates a new post, so allow the the WP_Query instance to
* The auto-draft status indicates a new post, so allow the WP_Query instance to
* return an auto-draft post for template resolution when editing a new post.
*
* @access private
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-customize-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3056,7 +3056,7 @@ public function preserve_insert_changeset_post_content( $data, $postarr, $unsani
*
* The following re-formulates the logic from `wp_trash_post()` as done in
* `wp_publish_post()`. The reason for bypassing `wp_trash_post()` is that it
* will mutate the the `post_content` and the `post_name` when they should be
* will mutate the `post_content` and the `post_name` when they should be
* untouched.
*
* @since 4.9.0
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-recovery-mode-email-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private function send_recovery_mode_email( $rate_limit, $error, $extension ) {
}

/**
* Filters the support message sent with the the fatal error protection email.
* Filters the support message sent with the fatal error protection email.
*
* @since 5.2.0
*
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-theme-json-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct( $data = array( 'version' => WP_Theme_JSON::LATEST_S
}

/**
* Updates the theme.json with the the given data.
* Updates the theme.json with the given data.
*
* @since 6.1.0
*
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2693,7 +2693,7 @@ function wp_update_comment( $commentarr, $wp_error = false ) {
*/
$data = apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr );

// Do not carry on on failure.
// Do not continue on failure.
if ( is_wp_error( $data ) ) {
if ( $wp_error ) {
return $data;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function wp_print_font_faces( $fonts = array() ) {
}

/**
* Generates and prints font-face styles defined the the theme style variations.
* Generates and prints font-face styles defined in the theme style variations.
*
* @since 6.7.0
*
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/rest-api/class-wp-rest-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ public function get_headers( $server ) {
} elseif ( 'REDIRECT_HTTP_AUTHORIZATION' === $key && empty( $server['HTTP_AUTHORIZATION'] ) ) {
/*
* In some server configurations, the authorization header is passed in this alternate location.
* Since it would not be passed in in both places we do not check for both headers and resolve.
* Since it would not be passed in both places we do not check for both headers and resolve.
*/
$headers['AUTHORIZATION'] = $value;
} elseif ( isset( $additional[ $key ] ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class WP_Sitemaps_Large_Test_Provider extends WP_Sitemaps_Provider {
/**
* WP_Sitemaps_Large_Test_Provider constructor.
*
* @param int $num_entries Optional. Number of entries in in the sitemap.
* @param int $num_entries Optional. Number of entries in the sitemap.
*/
public function __construct( $num_entries = 50001 ) {
$this->name = 'tests';
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/customize/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public function test_preview_custom_type() {
$this->assertSame( $this->undefined, $this->custom_type_getter( $name, $this->undefined ) );
$this->assertSame( $default, $setting->value() );
$this->assertTrue( $setting->preview() );
$this->assertSame( 1, did_action( "customize_preview_{$setting->id}" ), 'One preview action now because initial value was not set and/or there is no incoming post value, so there is is a preview to apply.' );
$this->assertSame( 1, did_action( "customize_preview_{$setting->id}" ), 'One preview action now because initial value was not set and/or there is no incoming post value, so there is a preview to apply.' );
$this->assertSame( 3, did_action( "customize_preview_{$setting->type}" ) );
$this->assertSame( $post_data_overrides[ $name ], $this->custom_type_getter( $name, $this->undefined ) );
$this->assertSame( $post_data_overrides[ $name ], $setting->value() );
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/date/currentTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function test_partial_hour_timezones_match_datetime_offset( $partial_hour
* Adjust for daylight saving time.
*
* DST adds an hour to the offset, the partial hour offset
* is set the the standard time offset so this removes the
* is set the standard time offset so this removes the
* DST offset to avoid false negatives.
*/
$offset -= $dst_offset;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/formatting/normalizeWhitespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Tests_Formatting_NormalizeWhitespace extends WP_UnitTestCase {

/**
* Tests the the normalize_whitespace() function.
* Tests the normalize_whitespace() function.
*
* @dataProvider data_normalize_whitespace
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -5654,7 +5654,7 @@ public function test_quality_with_image_conversion_file_sizes() {
copy( DIR_TESTDATA . '/images/33772.jpg', $file );

// Set JPEG output quality very low and WebP quality very high, this should force all generated WebP images to
// be larger than the the matching generated JPEGs.
// be larger than the matching generated JPEGs.
add_filter( 'wp_editor_set_quality', array( $this, 'image_editor_change_quality_low_jpeg' ), 10, 2 );

$editor = wp_get_image_editor( $file );
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/multisite/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function data_get_network_by_path_with_zero_path_segments() {
}

/**
* Even if a matching network is available, it should not match if the the filtered
* Even if a matching network is available, it should not match if the filtered
* value for network path segments is fewer than the number of paths passed.
*/
public function test_get_network_by_path_with_forced_single_path_segment_returns_single_path_network() {
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/multisite/cleanDirsizeCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function test_5_5_transient_structure_compat() {

/*
* Now that it's confirmed that old cached values aren't being returned, create the
* folder on disk, so that the the rest of the function can be tested.
* folder on disk, so that the rest of the function can be tested.
*/
wp_mkdir_p( $upload_dir['basedir'] . '/2/1' );
$filename = $upload_dir['basedir'] . '/2/1/this-needs-to-exist.txt';
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ public function test_wp_keep_alive_customize_changeset_dependent_auto_drafts() {
do_action( 'customize_register', $wp_customize );

// The post_date for auto-drafts is bumped to match the changeset post_date whenever it is modified
// to keep them from from being garbage collected by wp_delete_auto_drafts().
// to keep them from being garbage collected by wp_delete_auto_drafts().
$wp_customize->save_changeset_post(
array(
'data' => $data,
Expand Down
8 changes: 4 additions & 4 deletions tests/phpunit/tests/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ public function test_wp_new_user_notification( $notify, $admin_email_sent_expect

/*
* Check to see if a notification email was sent to the
* post author `blackburn@battlefield3.com` and and site admin `admin@example.org`.
* post author `blackburn@battlefield3.com` and site admin `admin@example.org`.
*/
$first_recipient = $mailer->get_recipient( 'to' );
if ( $first_recipient ) {
Expand Down Expand Up @@ -1803,7 +1803,7 @@ public function test_wp_new_user_notification_old_signature_throws_deprecated_wa

/*
* Check to see if a notification email was sent to the
* post author `blackburn@battlefield3.com` and and site admin `admin@example.org`.
* post author `blackburn@battlefield3.com` and site admin `admin@example.org`.
*/
if ( ! empty( $GLOBALS['phpmailer']->mock_sent ) ) {
$was_admin_email_sent = ( isset( $GLOBALS['phpmailer']->mock_sent[0] ) && WP_TESTS_EMAIL === $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] );
Expand All @@ -1828,7 +1828,7 @@ public function test_wp_new_user_notification_old_signature_no_password() {

/*
* Check to see if a notification email was sent to the
* post author `blackburn@battlefield3.com` and and site admin `admin@example.org`.
* post author `blackburn@battlefield3.com` and site admin `admin@example.org`.
*/
if ( ! empty( $GLOBALS['phpmailer']->mock_sent ) ) {
$was_admin_email_sent = ( isset( $GLOBALS['phpmailer']->mock_sent[0] ) && WP_TESTS_EMAIL === $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] );
Expand Down Expand Up @@ -1976,7 +1976,7 @@ static function ( $email ) use ( &$user_email_locale ) {

/*
* Check to see if a notification email was sent to the
* post author `blackburn@battlefield3.com` and and site admin `admin@example.org`.
* post author `blackburn@battlefield3.com` and site admin `admin@example.org`.
*/
$first_recipient = $mailer->get_recipient( 'to' );
if ( $first_recipient ) {
Expand Down
Loading