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.
Built from https://develop.svn.wordpress.org/trunk@34266


git-svn-id: http://core.svn.wordpress.org/trunk@34230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-09-17 14:35:26 +00:00
parent 48befcf361
commit cdc6bc8ad5
2 changed files with 4 additions and 3 deletions

View File

@ -1452,8 +1452,9 @@ function wp_insert_user( $userdata ) {
* Default true. * Default true.
* } * }
* @param WP_User $user User object. * @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. // Update user meta.
foreach ( $meta as $key => $value ) { foreach ( $meta as $key => $value ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34265'; $wp_version = '4.4-alpha-34266';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.