Make WordPress Core

Changeset 63496


Ignore:
Timestamp:
09/05/2026 09:52:14 AM (5 days ago)
Author:
wildworks
Message:

Docs: Align @param tag columns in users and multisite docblocks.

Aligns @param tag columns in docblocks across the users and multisite code per the PHP inline documentation standards.

Developed in: https://github.com/WordPress/wordpress-develop/pull/13314

Props mukesh27, wildworks.
See #65818.

Location:
trunk/src
Files:
7 edited

Legend:

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

    r63065 r63496  
    170170         *
    171171         * @param string $user_login The username.
    172          * @param string $pass1     The password (passed by reference).
    173          * @param string $pass2     The confirmed password (passed by reference).
     172         * @param string $pass1      The password (passed by reference).
     173         * @param string $pass2      The confirmed password (passed by reference).
    174174         */
    175175        do_action_ref_array( 'check_passwords', array( $user->user_login, &$pass1, &$pass2 ) );
     
    718718         *
    719719         * @param string[] $bad_protocols Array of invalid protocols.
    720          * @param string   $url The redirect URL to be validated.
     720         * @param string   $url           The redirect URL to be validated.
    721721         */
    722722        $invalid_protocols = apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url );
  • trunk/src/wp-admin/user-edit.php

    r62632 r63496  
    932932                                         * @since 2.8.0
    933933                                         *
    934                                          * @param bool    $enable      Whether to display the capabilities. Default true.
     934                                         * @param bool    $enable       Whether to display the capabilities. Default true.
    935935                                         * @param WP_User $profile_user The current WP_User object.
    936936                                         */
  • trunk/src/wp-admin/user-new.php

    r62967 r63496  
    155155                         * @since 5.6.0
    156156                         *
    157                          * @param array $new_user_email {
     157                         * @param array  $new_user_email {
    158158                         *     Used to build wp_mail().
    159159                         *
     
    163163                         *     @type string $headers Headers.
    164164                         * }
    165                          * @param int    $user_id     The invited user's ID.
    166                          * @param array  $role        Array containing role information for the invited user.
    167                          * @param string $newuser_key The key of the invitation.
     165                         * @param int    $user_id        The invited user's ID.
     166                         * @param array  $role           Array containing role information for the invited user.
     167                         * @param string $newuser_key    The key of the invitation.
    168168                         *
    169169                         */
  • trunk/src/wp-includes/class-wp-session-tokens.php

    r59803 r63496  
    155155         * @since 4.0.0
    156156         *
    157          * @param string $token Session token to update.
     157         * @param string $token   Session token to update.
    158158         * @param array  $session Session information.
    159159         */
  • trunk/src/wp-includes/ms-functions.php

    r62651 r63496  
    18521852         * @since 5.6.0
    18531853         *
    1854          * @param array $new_site_email {
     1854         * @param array   $new_site_email {
    18551855         *     Used to build wp_mail().
    18561856         *
     
    18601860         *     @type string $headers Headers.
    18611861         * }
    1862          * @param WP_Site $site         Site object of the new site.
    1863          * @param WP_User $user         User object of the administrator of the new site.
     1862         * @param WP_Site $site           Site object of the new site.
     1863         * @param WP_User $user           User object of the administrator of the new site.
    18641864         */
    18651865        $new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );
     
    29412941         * @since 4.9.0
    29422942         *
    2943          * @param array $email_change_email {
     2943         * @param array  $email_change_email {
    29442944         *     Used to build wp_mail().
    29452945         *
     
    29542954         *     @type string $headers Headers.
    29552955         * }
    2956          * @param string $old_email  The old network admin email address.
    2957          * @param string $new_email  The new network admin email address.
    2958          * @param int    $network_id ID of the network.
     2956         * @param string $old_email          The old network admin email address.
     2957         * @param string $new_email          The new network admin email address.
     2958         * @param int    $network_id         ID of the network.
    29592959         */
    29602960        $email_change_email = apply_filters( 'network_admin_email_change_email', $email_change_email, $old_email, $new_email, $network_id );
  • trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-users.php

    r56708 r63496  
    4747                 *
    4848                 * @param array[]|null $url_list The URL list. Default null.
    49                  * @param int        $page_num Page of results.
     49                 * @param int          $page_num Page of results.
    5050                 */
    5151                $url_list = apply_filters(
  • trunk/src/wp-includes/user.php

    r63487 r63496  
    25992599         * @since 5.8.0 The `$userdata` parameter was added.
    26002600         *
    2601          * @param array $meta {
     2601         * @param array   $meta {
    26022602         *     Default meta values and keys for the user.
    26032603         *
     
    34623462         * @since 6.0.0
    34633463         *
    3464          * @param array $defaults {
     3464         * @param array   $defaults {
    34653465         *     The default notification email arguments. Used to build wp_mail().
    34663466         *
Note: See TracChangeset for help on using the changeset viewer.