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

@ -1451,9 +1451,10 @@ function wp_insert_user( $userdata ) {
* @type bool $show_admin_bar_front Whether to show the admin bar on the front end for the user.
* 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.
foreach ( $meta as $key => $value ) {

View File

@ -4,7 +4,7 @@
*
* @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.