mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Add missing doc blocks to wp-admin/includes/*.
Fix some egregious uses of tabbing. Some functions can simply return `apply_filters(...)` instead of setting a variable that is immediately returned. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @return null|WP_Error|int Null when adding user, WP_Error or User ID integer when no parameters.
|
||||
* @return int|WP_Error WP_Error or User ID.
|
||||
*/
|
||||
function add_user() {
|
||||
return edit_user();
|
||||
@@ -25,7 +25,7 @@ function add_user() {
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param int $user_id Optional. User ID.
|
||||
* @return int user id of the updated user
|
||||
* @return int|WP_Error user id of the updated user
|
||||
*/
|
||||
function edit_user( $user_id = 0 ) {
|
||||
$wp_roles = wp_roles();
|
||||
@@ -410,6 +410,9 @@ function default_password_nag_handler($errors = false) {
|
||||
|
||||
/**
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param int $user_ID
|
||||
* @param object $old_data
|
||||
*/
|
||||
function default_password_nag_edit_user($user_ID, $old_data) {
|
||||
// Short-circuit it.
|
||||
|
||||
Reference in New Issue
Block a user