Changeset 39886 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 01/12/2017 04:56:28 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r39795 r39886 665 665 * @param string $user The user's requested login name. 666 666 * @param string $user_email The user's email address. 667 * @param array $meta By default, contains the requested privacy setting and lang_id.667 * @param array $meta Optional. Signup meta data. By default, contains the requested privacy setting and lang_id. 668 668 */ 669 669 function wpmu_signup_blog( $domain, $path, $title, $user, $user_email, $meta = array() ) { … … 671 671 672 672 $key = substr( md5( time() . wp_rand() . $domain ), 0, 16 ); 673 $meta = serialize($meta);674 673 675 674 $wpdb->insert( $wpdb->signups, array( … … 681 680 'registered' => current_time('mysql', true), 682 681 'activation_key' => $key, 683 'meta' => $meta682 'meta' => serialize( $meta ) 684 683 ) ); 685 684 … … 694 693 * @param string $user The user's requested login name. 695 694 * @param string $user_email The user's email address. 696 * @param string $key The user's activation key 697 * @param array $meta By default, contains the requested privacy setting and lang_id.695 * @param string $key The user's activation key. 696 * @param array $meta Signup meta data. By default, contains the requested privacy setting and lang_id. 698 697 */ 699 698 do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta ); … … 712 711 * @param string $user The user's requested login name. 713 712 * @param string $user_email The user's email address. 714 * @param array $meta By default, this is anempty array.713 * @param array $meta Optional. Signup meta data. Default empty array. 715 714 */ 716 715 function wpmu_signup_user( $user, $user_email, $meta = array() ) { … … 721 720 $user_email = sanitize_email( $user_email ); 722 721 $key = substr( md5( time() . wp_rand() . $user_email ), 0, 16 ); 723 $meta = serialize($meta);724 722 725 723 $wpdb->insert( $wpdb->signups, array( … … 731 729 'registered' => current_time('mysql', true), 732 730 'activation_key' => $key, 733 'meta' => $meta731 'meta' => serialize( $meta ) 734 732 ) ); 735 733 … … 741 739 * @param string $user The user's requested login name. 742 740 * @param string $user_email The user's email address. 743 * @param string $key The user's activation key 744 * @param array $meta Additional signup meta. By default, this is anempty array.741 * @param string $key The user's activation key. 742 * @param array $meta Signup meta data. Default empty array. 745 743 */ 746 744 do_action( 'after_signup_user', $user, $user_email, $key, $meta );
Note: See TracChangeset
for help on using the changeset viewer.