Make WordPress Core

Ticket #31549: 31549.5.diff

File 31549.5.diff, 634 bytes (added by tharsheblows, 9 years ago)

add in $update to see if user is being created or updated

  • src/wp-includes/user-functions.php

     
    14521452         *                                          Default true.
    14531453         * }
    14541454         * @param WP_User $user User object.
     1455         * @param bool $update Whether the user is being updated rather than created.
    14551456         */
    1456         $meta = apply_filters( 'insert_user_meta', $meta, $user );
     1457        $meta = apply_filters( 'insert_user_meta', $meta, $user, $update );
    14571458
    14581459        // Update user meta.
    14591460        foreach ( $meta as $key => $value ) {