Make WordPress Core

Changeset 34266


Ignore:
Timestamp:
09/17/2015 02:34:49 PM (9 years ago)
Author:
boonebgorges
Message:

Tell the insert_user_meta filter whether user is being updated.

insert_user_meta was introduced in [33708]. This changeset passes the
$update parameter to it.

Props tharsheblows, geminorum.
Fixes #31549.

File:
1 edited

Legend:

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

    r34251 r34266  
    14521452     *                                          Default true.
    14531453     * }
    1454      * @param WP_User $user User object.
     1454     * @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.
Note: See TracChangeset for help on using the changeset viewer.