WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/19/2014 06:31:00 AM (6 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-includes/class-wp.php

    r28516 r28521  
    675675
    676676    /**
     677     * Make private properties setable for backwards compatibility
     678     *
     679     * @since 4.0.0
     680     * @param string $name
     681     * @param string $value
     682     * @return mixed
     683     */
     684    public function __set( $name, $value ) {
     685        return $this->$name = $value;
     686    }
     687
     688    /**
    677689     * Make private/protected methods readable for backwards compatibility
    678690     *
Note: See TracChangeset for help on using the changeset viewer.