From fec01b068523b9dae195453ededa435c33b9c4ee Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 31 Jul 2019 01:26:54 +0000 Subject: [PATCH] Docs: Correct parameter type and description for `is_email` filter. Props jenkoian. Fixes #47793. Built from https://develop.svn.wordpress.org/trunk@45703 git-svn-id: http://core.svn.wordpress.org/trunk@45514 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index fd41b49c12..ab6ca7b4de 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -3267,7 +3267,7 @@ function convert_smilies( $text ) { * * @param string $email Email address to verify. * @param bool $deprecated Deprecated. - * @return string|bool Either false or the valid email address. + * @return string|false Valid email address on success, false on failure. */ function is_email( $email, $deprecated = false ) { if ( ! empty( $deprecated ) ) { @@ -3285,9 +3285,9 @@ function is_email( $email, $deprecated = false ) { * * @since 2.8.0 * - * @param bool $is_email Whether the email address has passed the is_email() checks. Default false. - * @param string $email The email address being checked. - * @param string $context Context under which the email was tested. + * @param string|false $is_email The email address if successfully passed the is_email() checks, false otherwise. + * @param string $email The email address being checked. + * @param string $context Context under which the email was tested. */ return apply_filters( 'is_email', false, $email, 'email_too_short' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1944ce902b..94aeb37894 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45702'; +$wp_version = '5.3-alpha-45703'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.