Make WordPress Core

Changeset 34390


Ignore:
Timestamp:
09/22/2015 10:06:56 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Add a missing access modifier to the declaration for the WP_User::__unset() magic method, introduced in [34380].

Also adds missing documentation to the DocBlock.

Fixes #20043.

File:
1 edited

Legend:

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

    r34389 r34390  
    336336
    337337    /**
    338      * Magic method for unsetting a certain custom field
     338     * Magic method for unsetting a certain custom field.
    339339     *
    340340     * @since 4.4.0
    341      */
    342     function __unset( $key ) {
     341     * @access public
     342     *
     343     * @param string $key User meta key to unset.
     344     */
     345    public function __unset( $key ) {
    343346        if ( 'id' == $key ) {
    344347            _deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
Note: See TracChangeset for help on using the changeset viewer.