-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Refactor 41757 for MS functions #8476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2302,9 +2302,9 @@ function add_existing_user_to_blog( $details = false ) { | |||||
| * | ||||||
| * @see add_user_to_blog() | ||||||
| * | ||||||
| * @param int $user_id User ID. | ||||||
| * @param string $password User password. Ignored. | ||||||
| * @param array $meta Signup meta data. | ||||||
| * @param int $user_id | ||||||
| * @param mixed $password Accessible via 'added_new_user_to_blog' hook. | ||||||
| * @param array $meta | ||||||
| */ | ||||||
| function add_new_user_to_blog( | ||||||
| $user_id, | ||||||
|
|
@@ -2321,6 +2321,18 @@ function add_new_user_to_blog( | |||||
|
|
||||||
| if ( ! is_wp_error( $result ) ) { | ||||||
| update_user_meta( $user_id, 'primary_blog', $blog_id ); | ||||||
|
|
||||||
| /** | ||||||
| * Fires when a new user is added to a network site without an error from $result. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| * | ||||||
| * @since 4.9.0 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| * | ||||||
| * @param int $user_id New user's ID. | ||||||
| * @param mixed $password New user's password. | ||||||
| * @param array $meta Array of meta data from the new registration. | ||||||
| * @param int $blog_id Blog ID. | ||||||
| */ | ||||||
| do_action( 'added_new_user_to_blog', $user_id, $password, $meta, $blog_id ); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Naming things: I'd go with the following as I think it a better practice to use the
Suggested change
|
||||||
| } | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Descriptions for user_id and meta will need to be retained, password is still a string.