Make WordPress Core

Ticket #38781: patch-38781.diff

File patch-38781.diff, 797 bytes (added by MaximeCulea, 8 years ago)
  • src/wp-includes/ms-functions.php

    diff --git src/wp-includes/ms-functions.php src/wp-includes/ms-functions.php
    index 0ef1d98..7d13dc6 100644
    function wpmu_signup_user( $user, $user_email, $meta = array() ) { 
    720720        $user = preg_replace( '/\s+/', '', sanitize_user( $user, true ) );
    721721        $user_email = sanitize_email( $user_email );
    722722        $key = substr( md5( time() . rand() . $user_email ), 0, 16 );
    723         $meta = serialize($meta);
    724723
    725724        $wpdb->insert( $wpdb->signups, array(
    726725                'domain' => '',
    function wpmu_signup_user( $user, $user_email, $meta = array() ) { 
    730729                'user_email' => $user_email,
    731730                'registered' => current_time('mysql', true),
    732731                'activation_key' => $key,
    733                 'meta' => $meta
     732                'meta' => serialize($meta)
    734733        ) );
    735734
    736735        /**