WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/29/2015 08:16:22 PM (6 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r32653 r32654  
    1212 * @since 2.0.0
    1313 *
    14  * @return null|WP_Error|int Null when adding user, WP_Error or User ID integer when no parameters.
     14 * @return int|WP_Error WP_Error or User ID.
    1515 */
    1616function add_user() {
     
    2626 *
    2727 * @param int $user_id Optional. User ID.
    28  * @return int user id of the updated user
     28 * @return int|WP_Error user id of the updated user
    2929 */
    3030function edit_user( $user_id = 0 ) {
     
    411411/**
    412412 * @since 2.8.0
     413 *
     414 * @param int    $user_ID
     415 * @param object $old_data
    413416 */
    414417function default_password_nag_edit_user($user_ID, $old_data) {
Note: See TracChangeset for help on using the changeset viewer.