mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user