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-background.php

    r28481 r28521  
    6969        return $this->$name;
    7070    }
     71
     72    /**
     73     * Make private properties setable for backwards compatibility
     74     *
     75     * @since 4.0.0
     76     * @param string $name
     77     * @param string $value
     78     * @return mixed
     79     */
     80    public function __set( $name, $value ) {
     81        return $this->$name = $value;
     82    }
     83
    7184
    7285    /**
Note: See TracChangeset for help on using the changeset viewer.