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

Fixes #36218.
Built from https://develop.svn.wordpress.org/trunk@36970


git-svn-id: http://core.svn.wordpress.org/trunk@36938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2016-03-12 12:39:27 +00:00
parent 9462ab0576
commit d8f3325c14
10 changed files with 10 additions and 10 deletions

View File

@ -379,7 +379,7 @@ class WP_Press_This {
return ''; // Return empty rather than a truncated/invalid URL
}
// Does not look like an URL.
// Does not look like a URL.
if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) {
return '';
}

View File

@ -469,7 +469,7 @@ function wp_handle_sideload( &$file, $overrides = false, $time = null ) {
/**
* Downloads a url to a local temporary file using the WordPress HTTP Class.
* Downloads a URL to a local temporary file using the WordPress HTTP Class.
* Please note, That the calling function must unlink() the file.
*
* @since 2.5.0

View File

@ -28,7 +28,7 @@ function wp_crop_image( $src, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $s
$src_file = get_attached_file( $src );
if ( ! file_exists( $src_file ) ) {
// If the file doesn't exist, attempt a url fopen on the src link.
// If the file doesn't exist, attempt a URL fopen on the src link.
// This can occur with certain file replication plugins.
$src = _load_image_to_edit_path( $src, 'full' );
} else {

View File

@ -109,7 +109,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
}
/*
* If the string 'none' (previously 'div') is passed instead of an URL, don't output
* If the string 'none' (previously 'div') is passed instead of a URL, don't output
* the default menu image so an icon can be added to div.wp-menu-image as background
* with CSS. Dashicons and base64-encoded data:image/svg_xml URIs are also handled
* as special cases.

View File

@ -15,7 +15,7 @@ class WP_Embed {
public $last_url = '';
/**
* When an URL cannot be embedded, return false instead of returning a link
* When a URL cannot be embedded, return false instead of returning a link
* or the URL. Bypasses the 'embed_maybe_make_link' filter.
*/
public $return_false_on_fail = false;

View File

@ -351,7 +351,7 @@ class WP_Http_Curl {
}
/**
* Determines whether this class can be used for retrieving an URL.
* Determines whether this class can be used for retrieving a URL.
*
* @static
* @since 2.7.0

View File

@ -2203,7 +2203,7 @@ function discover_pingback_server_uri( $url, $deprecated = '' ) {
/** @todo Should use Filter Extension or custom preg_match instead. */
$parsed_url = parse_url($url);
if ( ! isset( $parsed_url['host'] ) ) // Not an URL. This should never happen.
if ( ! isset( $parsed_url['host'] ) ) // Not a URL. This should never happen.
return false;
//Do not search for a pingback server on our own uploads

View File

@ -4785,7 +4785,7 @@ function wp_staticize_emoji_for_email( $mail ) {
}
/**
* Shorten an URL, to be used as link text.
* Shorten a URL, to be used as link text.
*
* @since 1.2.0
* @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param.

View File

@ -447,7 +447,7 @@ function wp_resolve_numeric_slug_conflicts( $query_vars = array() ) {
}
/**
* Examine a url and try to determine the post ID it represents.
* Examine a URL and try to determine the post ID it represents.
*
* Checks are supposedly from the hosted site blog.
*

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta3-36969';
$wp_version = '4.5-beta3-36970';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.