mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 07:04:34 +00:00
Docs: Promote many bool types to true or false where only that value is used.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1076,7 +1076,7 @@ class WP_Http {
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @param string $maybe_ip A suspected IP address.
|
||||
* @return int|bool 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 a 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