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. git-svn-id: https://develop.svn.wordpress.org/trunk@34266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3531c0bc10
commit
b08a176488
@ -1452,8 +1452,9 @@ function wp_insert_user( $userdata ) {
|
||||
* Default true.
|
||||
* }
|
||||
* @param WP_User $user User object.
|
||||
* @param bool $update Whether the user is being updated rather than created.
|
||||
*/
|
||||
$meta = apply_filters( 'insert_user_meta', $meta, $user );
|
||||
$meta = apply_filters( 'insert_user_meta', $meta, $user, $update );
|
||||
|
||||
// Update user meta.
|
||||
foreach ( $meta as $key => $value ) {
|
||||
|
Loading…
Reference in New Issue
Block a user