WordPress.org

Make WordPress Core

Changeset 36970


Ignore:
Timestamp:
03/12/2016 12:38:48 PM (5 years ago)
Author:
ocean90
Message:

Docs: Correct grammar when referring to "a URL" vs "an URL" in several places.

Fixes #36218.

Location:
trunk/src
Files:
9 edited

Legend:

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

    r36848 r36970  
    380380        }
    381381
    382         // Does not look like an URL.
     382        // Does not look like a URL.
    383383        if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) {
    384384            return '';
  • trunk/src/wp-admin/includes/file.php

    r36473 r36970  
    470470
    471471/**
    472  * Downloads a url to a local temporary file using the WordPress HTTP Class.
     472 * Downloads a URL to a local temporary file using the WordPress HTTP Class.
    473473 * Please note, That the calling function must unlink() the file.
    474474 *
  • trunk/src/wp-admin/includes/image.php

    r36429 r36970  
    2929
    3030        if ( ! file_exists( $src_file ) ) {
    31             // If the file doesn't exist, attempt a url fopen on the src link.
     31            // If the file doesn't exist, attempt a URL fopen on the src link.
    3232            // This can occur with certain file replication plugins.
    3333            $src = _load_image_to_edit_path( $src, 'full' );
  • trunk/src/wp-admin/menu-header.php

    r34725 r36970  
    110110
    111111        /*
    112          * If the string 'none' (previously 'div') is passed instead of an URL, don't output
     112         * If the string 'none' (previously 'div') is passed instead of a URL, don't output
    113113         * the default menu image so an icon can be added to div.wp-menu-image as background
    114114         * with CSS. Dashicons and base64-encoded data:image/svg_xml URIs are also handled
  • trunk/src/wp-includes/class-wp-embed.php

    r35702 r36970  
    1616
    1717    /**
    18      * When an URL cannot be embedded, return false instead of returning a link
     18     * When a URL cannot be embedded, return false instead of returning a link
    1919     * or the URL. Bypasses the 'embed_maybe_make_link' filter.
    2020     */
  • trunk/src/wp-includes/class-wp-http-curl.php

    r36069 r36970  
    352352
    353353    /**
    354      * Determines whether this class can be used for retrieving an URL.
     354     * Determines whether this class can be used for retrieving a URL.
    355355     *
    356356     * @static
  • trunk/src/wp-includes/comment.php

    r36922 r36970  
    22042204    $parsed_url = parse_url($url);
    22052205
    2206     if ( ! isset( $parsed_url['host'] ) ) // Not an URL. This should never happen.
     2206    if ( ! isset( $parsed_url['host'] ) ) // Not a URL. This should never happen.
    22072207        return false;
    22082208
  • trunk/src/wp-includes/formatting.php

    r36775 r36970  
    47864786
    47874787/**
    4788  * Shorten an URL, to be used as link text.
     4788 * Shorten a URL, to be used as link text.
    47894789 *
    47904790 * @since 1.2.0
  • trunk/src/wp-includes/rewrite.php

    r36960 r36970  
    448448
    449449/**
    450  * Examine a url and try to determine the post ID it represents.
     450 * Examine a URL and try to determine the post ID it represents.
    451451 *
    452452 * Checks are supposedly from the hosted site blog.
Note: See TracChangeset for help on using the changeset viewer.