Make WordPress Core

Changeset 55827


Ignore:
Timestamp:
05/19/2023 01:25:49 PM (21 months ago)
Author:
SergeyBiryukov
Message:

Docs: Fix a few more typos in DocBlocks and inline comments.

Follow-up to [6779], [10565], [12023], [25224], [27533], [32806], [34777], [45262], [46594], [55823], [55824].

Props Presskopp.
See #57840.

Location:
trunk/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-pclzip.php

    r55757 r55827  
    633633  //                path_creation_fail : the file is not extracted because the folder
    634634  //                                     does not exist and can not be created
    635   //                write_error : the file was not extracted because there was a
     635  //                write_error : the file was not extracted because there was an
    636636  //                              error while writing the file
    637   //                read_error : the file was not extracted because there was a error
     637  //                read_error : the file was not extracted because there was an error
    638638  //                             while reading the file
    639639  //                invalid_header : the file was not extracted because of an archive
  • trunk/src/wp-admin/includes/file.php

    r55822 r55827  
    13781378    }
    13791379
    1380     // Check for a edge-case affecting PHP Maths abilities.
     1380    // Check for an edge-case affecting PHP Maths abilities.
    13811381    if (
    13821382        ! extension_loaded( 'sodium' ) &&
  • trunk/src/wp-includes/class-wp-http-cookie.php

    r54133 r55827  
    137137                $pair = rtrim( $pair );
    138138
    139                 // Handle the cookie ending in ; which results in a empty final pair.
     139                // Handle the cookie ending in ; which results in an empty final pair.
    140140                if ( empty( $pair ) ) {
    141141                    continue;
  • trunk/src/wp-includes/class-wp-http.php

    r55370 r55827  
    10811081     *
    10821082     * This function also detects the type of the IP address, returning either
    1083      * '4' or '6' to represent a IPv4 and IPv6 address respectively.
     1083     * '4' or '6' to represent an IPv4 and IPv6 address respectively.
    10841084     * This does not verify if the IP is a valid IP, only that it appears to be
    10851085     * an IP address.
     
    10901090     *
    10911091     * @param string $maybe_ip A suspected IP address.
    1092      * @return int|false Upon success, '4' or '6' to represent a IPv4 or IPv6 address, false upon failure
     1092     * @return int|false Upon success, '4' or '6' to represent an IPv4 or IPv6 address, false upon failure.
    10931093     */
    10941094    public static function is_ip_address( $maybe_ip ) {
  • trunk/src/wp-includes/class-wp-oembed.php

    r55412 r55827  
    515515
    516516    /**
    517      * Connects to a oEmbed provider and returns the result.
     517     * Connects to an oEmbed provider and returns the result.
    518518     *
    519519     * @since 2.9.0
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

    r53455 r55827  
    229229            $value = false;
    230230
    231             // Note that a ID of less than one indicates a nav_menu not yet inserted.
     231            // Note that an ID of less than one indicates a nav_menu not yet inserted.
    232232            if ( $this->post_id > 0 ) {
    233233                $post = get_post( $this->post_id );
  • trunk/src/wp-includes/media-template.php

    r55470 r55827  
    99
    1010/**
    11  * Outputs the markup for a audio tag to be used in an Underscore template
     11 * Outputs the markup for an audio tag to be used in an Underscore template
    1212 * when data.model is passed.
    1313 *
  • trunk/src/wp-includes/media.php

    r55825 r55827  
    38123812        || is_resource( $image ) && 'gd' === get_resource_type( $image )
    38133813    ) {
     3814
    38143815        return true;
    38153816    }
     
    48624863
    48634864/**
    4864  * Checks the HTML content for a audio, video, object, embed, or iframe tags.
     4865 * Checks the HTML content for an audio, video, object, embed, or iframe tags.
    48654866 *
    48664867 * @since 3.6.0
  • trunk/src/wp-includes/option.php

    r55256 r55827  
    13711371
    13721372/**
    1373  * Removes a option by name for the current network.
     1373 * Removes an option by name for the current network.
    13741374 *
    13751375 * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.