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/includes/class-wp-list-table.php

    r28500 r28521  
    105105    public function __get( $name ) {
    106106        return $this->$name;
     107    }
     108
     109    /**
     110     * Make private properties setable for backwards compatibility
     111     *
     112     * @since 4.0.0
     113     * @param string $name
     114     * @param string $value
     115     * @return mixed
     116     */
     117    public function __set( $name, $value ) {
     118        return $this->$name = $value;
    107119    }
    108120
Note: See TracChangeset for help on using the changeset viewer.