Make WordPress Core


Ignore:
Timestamp:
05/19/2014 06:31:00 AM (10 years ago)
Author:
wonderboymusic
Message:

Some classes with __get() method also need __set().

See #27881, #22234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-base.php

    r28487 r28521  
    5454    public function __get( $name ) {
    5555        return $this->$name;
     56    }
     57
     58    /**
     59     * Make private properties setable for backwards compatibility
     60     *
     61     * @since 4.0.0
     62     * @param string $name
     63     * @param string $value
     64     * @return mixed
     65     */
     66    public function __set( $name, $value ) {
     67        return $this->$name = $value;
    5668    }
    5769
Note: See TracChangeset for help on using the changeset viewer.