Docs: Correct grammar when referring to "a URL" vs "an URL" in several places.
Fixes #36218. git-svn-id: https://develop.svn.wordpress.org/trunk@36970 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
91d4bbd041
commit
39ddaa65cc
@ -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 '';
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user