Docs: Fix a few more typos in DocBlocks and inline comments.
Follow-up to [6779], [10565], [12023], [25224], [27533], [32806], [34777], [45262], [46594], [55823], [55824]. Props Presskopp. See #57840. Built from https://develop.svn.wordpress.org/trunk@55827 git-svn-id: http://core.svn.wordpress.org/trunk@55339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1080,7 +1080,7 @@ class WP_Http {
|
||||
* Determines if a specified string represents an IP address or not.
|
||||
*
|
||||
* This function also detects the type of the IP address, returning either
|
||||
* '4' or '6' to represent a IPv4 and IPv6 address respectively.
|
||||
* '4' or '6' to represent an IPv4 and IPv6 address respectively.
|
||||
* This does not verify if the IP is a valid IP, only that it appears to be
|
||||
* an IP address.
|
||||
*
|
||||
@@ -1089,7 +1089,7 @@ class WP_Http {
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @param string $maybe_ip A suspected IP address.
|
||||
* @return int|false Upon success, '4' or '6' to represent a IPv4 or IPv6 address, false upon failure
|
||||
* @return int|false Upon success, '4' or '6' to represent an IPv4 or IPv6 address, false upon failure.
|
||||
*/
|
||||
public static function is_ip_address( $maybe_ip ) {
|
||||
if ( preg_match( '/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', $maybe_ip ) ) {
|
||||
|
||||
Reference in New Issue
Block a user