WordPress.org

Make WordPress Core

Ticket #39223: 39223.3.patch

File 39223.3.patch, 1.9 KB (added by Mista-Flo, 3 years ago)

Refresh patch according to #38781

  • wp-includes/ms-functions.php

    diff --git wp-includes/ms-functions.php wp-includes/ms-functions.php
    index ad8330a..460eb90 100644
    function wpmu_signup_user( $user, $user_email, $meta = array() ) { 
    720720        $user_email = sanitize_email( $user_email );
    721721        $key = substr( md5( time() . wp_rand() . $user_email ), 0, 16 );
    722722
     723        /**
     724         * Filters the metadata for a user signup
     725         *
     726         * The metadata will be serialized prior to storing it in the database
     727         *
     728         * @since 4.8.0
     729         *
     730         * @param array  $meta       Signup meta data. Default empty array.
     731         * @param string $user       The user's requested login name.
     732         * @param string $user_email The user's email address.
     733         * @param string $key        The user's activation key.
     734         */
     735        $meta = apply_filters( 'user_signup_meta', $meta, $user, $user_email, $key );
     736
    723737        $wpdb->insert( $wpdb->signups, array(
    724738                'domain' => '',
    725739                'path' => '',