wp/wp-includes/class-wp-object-cache.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    71 	 * @var bool
    71 	 * @var bool
    72 	 */
    72 	 */
    73 	private $multisite;
    73 	private $multisite;
    74 
    74 
    75 	/**
    75 	/**
    76 	 * Sets up object properties; PHP 5 style constructor.
    76 	 * Sets up object properties.
    77 	 *
    77 	 *
    78 	 * @since 2.0.8
    78 	 * @since 2.0.8
    79 	 */
    79 	 */
    80 	public function __construct() {
    80 	public function __construct() {
    81 		$this->multisite   = is_multisite();
    81 		$this->multisite   = is_multisite();
    99 	 *
    99 	 *
   100 	 * @since 4.0.0
   100 	 * @since 4.0.0
   101 	 *
   101 	 *
   102 	 * @param string $name  Property to set.
   102 	 * @param string $name  Property to set.
   103 	 * @param mixed  $value Property value.
   103 	 * @param mixed  $value Property value.
   104 	 * @return mixed Newly-set property.
       
   105 	 */
   104 	 */
   106 	public function __set( $name, $value ) {
   105 	public function __set( $name, $value ) {
   107 		return $this->$name = $value;
   106 		$this->$name = $value;
   108 	}
   107 	}
   109 
   108 
   110 	/**
   109 	/**
   111 	 * Makes private properties checkable for backward compatibility.
   110 	 * Makes private properties checkable for backward compatibility.
   112 	 *
   111 	 *