Make WordPress Core


Ignore:
Timestamp:
07/23/2020 09:09:04 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Another pass at some inline docs fixes mostly made by PHPCBF.

See #49572, #50744

File:
1 edited

Legend:

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

    r48574 r48590  
    116116         * @since 2.0.0
    117117         *
    118          * @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB.
    119          * @param string $name Optional. User's username
    120          * @param int $site_id Optional Site ID, defaults to current site.
     118         * @param int|string|stdClass|WP_User $id      User's ID, a WP_User object, or a user object from the DB.
     119         * @param string                      $name    Optional. User's username
     120         * @param int                         $site_id Optional Site ID, defaults to current site.
    121121         */
    122122        public function __construct( $id = 0, $name = '', $site_id = '' ) {
    … …  
    182182         * @global wpdb $wpdb WordPress database abstraction object.
    183183         *
    184          * @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.
     184         * @param string     $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.
    185185         * @param string|int $value The field value
    186186         * @return object|false Raw user object
    … …  
    440440         * @since 4.3.0
    441441         *
    442          * @param string   $name      Method to call.
    443          * @param array    $arguments Arguments to pass when calling.
     442         * @param string $name      Method to call.
     443         * @param array  $arguments Arguments to pass when calling.
    444444         * @return mixed|false Return value of the callback, false otherwise.
    445445         */
    … …  
    638638         * @since 2.0.0
    639639         *
    640          * @param int $max Max level of user.
     640         * @param int    $max Max level of user.
    641641         * @param string $item Level capability name.
    642642         * @return int Max Level.
    … …  
    673673         * @since 2.0.0
    674674         *
    675          * @param string $cap Capability name.
    676          * @param bool $grant Whether to grant capability to user.
     675         * @param string $cap   Capability name.
     676         * @param bool   $grant Whether to grant capability to user.
    677677         */
    678678        public function add_cap( $cap, $grant = true ) {
Note: See TracChangeset for help on using the changeset viewer.