Make WordPress Core


Ignore:
Timestamp:
09/11/2024 12:06:15 PM (10 months ago)
Author:
johnbillion
Message:

Docs: Various docblock improvements and corrections.

See #61608

File:
1 edited

Legend:

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

    r55732 r59009  
    7272     *     Application password details, or a WP_Error instance if an error occurs.
    7373     *
    74      *     @type string $0 The unhashed generated application password.
     74     *     @type string $0 The generated application password in plain text.
    7575     *     @type array  $1 {
    7676     *         The details about the created password.
     
    142142         *     @type null   $last_ip   Null.
    143143         * }
    144          * @param string $new_password The unhashed generated application password.
     144         * @param string $new_password The generated application password in plain text.
    145145         * @param array  $args         {
    146146         *     Arguments used to create the application password.
     
    162162     * @param int $user_id User ID.
    163163     * @return array {
    164      *     The list of app passwords.
     164     *     The list of application passwords.
    165165     *
    166166     *     @type array ...$0 {
     
    205205     * @param int    $user_id User ID.
    206206     * @param string $uuid    The password's UUID.
    207      * @return array|null The application password if found, null otherwise.
     207     * @return array|null {
     208     *     The application password if found, null otherwise.
     209     *
     210     *     @type string      $uuid      The unique identifier for the application password.
     211     *     @type string      $app_id    A UUID provided by the application to uniquely identify it.
     212     *     @type string      $name      The name of the application password.
     213     *     @type string      $password  A one-way hash of the password.
     214     *     @type int         $created   Unix timestamp of when the password was created.
     215     *     @type int|null    $last_used The Unix timestamp of the GMT date the application password was last used.
     216     *     @type string|null $last_ip   The IP address the application password was last used by.
     217     * }
    208218     */
    209219    public static function get_user_application_password( $user_id, $uuid ) {
     
    247257     * @param int    $user_id User ID.
    248258     * @param string $uuid    The password's UUID.
    249      * @param array  $update  Information about the application password to update.
     259     * @param array  $update  {
     260     *     Information about the application password to update.
     261     *
     262     *     @type string      $uuid      The unique identifier for the application password.
     263     *     @type string      $app_id    A UUID provided by the application to uniquely identify it.
     264     *     @type string      $name      The name of the application password.
     265     *     @type string      $password  A one-way hash of the password.
     266     *     @type int         $created   Unix timestamp of when the password was created.
     267     *     @type int|null    $last_used The Unix timestamp of the GMT date the application password was last used.
     268     *     @type string|null $last_ip   The IP address the application password was last used by.
     269     * }
    250270     * @return true|WP_Error True if successful, otherwise a WP_Error instance is returned on error.
    251271     */
     
    283303             *
    284304             * @param int   $user_id The user ID.
    285              * @param array $item    The updated app password details.
     305             * @param array $item    {
     306             *     The updated application password details.
     307             *
     308             *     @type string      $uuid      The unique identifier for the application password.
     309             *     @type string      $app_id    A UUID provided by the application to uniquely identify it.
     310             *     @type string      $name      The name of the application password.
     311             *     @type string      $password  A one-way hash of the password.
     312             *     @type int         $created   Unix timestamp of when the password was created.
     313             *     @type int|null    $last_used The Unix timestamp of the GMT date the application password was last used.
     314             *     @type string|null $last_ip   The IP address the application password was last used by.
     315             * }
    286316             * @param array $update  The information to update.
    287317             */
     
    405435     *
    406436     * @param int   $user_id   User ID.
    407      * @param array $passwords Application passwords.
    408      *
    409      * @return bool
     437     * @param array $passwords {
     438     *     The list of application passwords.
     439     *
     440     *     @type array ...$0 {
     441     *         @type string      $uuid      The unique identifier for the application password.
     442     *         @type string      $app_id    A UUID provided by the application to uniquely identify it.
     443     *         @type string      $name      The name of the application password.
     444     *         @type string      $password  A one-way hash of the password.
     445     *         @type int         $created   Unix timestamp of when the password was created.
     446     *         @type int|null    $last_used The Unix timestamp of the GMT date the application password was last used.
     447     *         @type string|null $last_ip   The IP address the application password was last used by.
     448     *     }
     449     * }
     450     * @return int|bool User meta ID if the key didn't exist (ie. this is the first time that an application password
     451     *                  has been saved for the user), true on successful update, false on failure or if the value passed
     452     *                  is the same as the one that is already in the database.
    410453     */
    411454    protected static function set_user_application_passwords( $user_id, $passwords ) {
Note: See TracChangeset for help on using the changeset viewer.