Make WordPress Core

Changeset 45703


Ignore:
Timestamp:
07/31/2019 01:25:43 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct parameter type and description for is_email filter.

Props jenkoian.
Fixes #47793.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r45676 r45703  
    32683268 * @param string $email      Email address to verify.
    32693269 * @param bool   $deprecated Deprecated.
    3270  * @return string|bool Either false or the valid email address.
     3270 * @return string|false Valid email address on success, false on failure.
    32713271 */
    32723272function is_email( $email, $deprecated = false ) {
     
    32863286         * @since 2.8.0
    32873287         *
    3288          * @param bool   $is_email Whether the email address has passed the is_email() checks. Default false.
    3289          * @param string $email    The email address being checked.
    3290          * @param string $context  Context under which the email was tested.
     3288         * @param string|false $is_email The email address if successfully passed the is_email() checks, false otherwise.
     3289         * @param string       $email    The email address being checked.
     3290         * @param string       $context  Context under which the email was tested.
    32913291         */
    32923292        return apply_filters( 'is_email', false, $email, 'email_too_short' );
Note: See TracChangeset for help on using the changeset viewer.