mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
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:
parent
48befcf361
commit
cdc6bc8ad5
@ -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.
|
* @type bool $show_admin_bar_front Whether to show the admin bar on the front end for the user.
|
||||||
* 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 ) {
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user