WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/19/2014 06:31:00 AM (8 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/custom-header.php

    r28483 r28521  
    9090    public function __get( $name ) {
    9191        return $this->$name;
     92    }
     93
     94    /**
     95     * Make private properties setable for backwards compatibility
     96     *
     97     * @since 4.0.0
     98     * @param string $name
     99     * @param string $value
     100     * @return mixed
     101     */
     102    public function __set( $name, $value ) {
     103        return $this->$name = $value;
    92104    }
    93105
Note: See TracChangeset for help on using the changeset viewer.