WordPress.org

Make WordPress Core

Changeset 34389


Ignore:
Timestamp:
09/22/2015 10:01:01 AM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Fix some syntactical issues and add missing parameter and return descriptions to the DocBlock for the WP_User::__get() magic method.

See #32246.

File:
1 edited

Legend:

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

    r34388 r34389  
    284284
    285285    /**
    286      * Magic method for accessing custom fields
     286     * Magic method for accessing custom fields.
    287287     *
    288288     * @since 3.3.0
    289      * @param string $key
    290      * @return mixed
     289     * @access public
     290     *
     291     * @param string $key User meta key to retrieve.
     292     * @return mixed Value of the given user meta key (if set). If `$key` is 'id', the user ID.
    291293     */
    292294    public function __get( $key ) {
Note: See TracChangeset for help on using the changeset viewer.