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:
parent
9462ab0576
commit
d8f3325c14
|
@ -379,7 +379,7 @@ class WP_Press_This {
|
||||||
return ''; // Return empty rather than a truncated/invalid URL
|
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 ) ) {
|
if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) {
|
||||||
return '';
|
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.
|
* Please note, That the calling function must unlink() the file.
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @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 );
|
$src_file = get_attached_file( $src );
|
||||||
|
|
||||||
if ( ! file_exists( $src_file ) ) {
|
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.
|
// This can occur with certain file replication plugins.
|
||||||
$src = _load_image_to_edit_path( $src, 'full' );
|
$src = _load_image_to_edit_path( $src, 'full' );
|
||||||
} else {
|
} 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
|
* 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
|
* with CSS. Dashicons and base64-encoded data:image/svg_xml URIs are also handled
|
||||||
* as special cases.
|
* as special cases.
|
||||||
|
|
|
@ -15,7 +15,7 @@ class WP_Embed {
|
||||||
public $last_url = '';
|
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.
|
* or the URL. Bypasses the 'embed_maybe_make_link' filter.
|
||||||
*/
|
*/
|
||||||
public $return_false_on_fail = false;
|
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
|
* @static
|
||||||
* @since 2.7.0
|
* @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. */
|
/** @todo Should use Filter Extension or custom preg_match instead. */
|
||||||
$parsed_url = parse_url($url);
|
$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;
|
return false;
|
||||||
|
|
||||||
//Do not search for a pingback server on our own uploads
|
//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 1.2.0
|
||||||
* @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param.
|
* @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.
|
* Checks are supposedly from the hosted site blog.
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue