WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/19/2014 06:51:35 AM (7 years ago)
Author:
wonderboymusic
Message:

Classes that have __set() also need __isset() and __unset().

See #27881, #22234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/custom-background.php

    r28521 r28524  
    8282    }
    8383
     84    /**
     85     * Make private properties checkable for backwards compatibility
     86     *
     87     * @since 4.0.0
     88     * @param string $name
     89     * @return mixed
     90     */
     91    public function __isset( $name ) {
     92        return isset( $this->$name );
     93    }
     94
     95    /**
     96     * Make private properties unsetable for backwards compatibility
     97     *
     98     * @since 4.0.0
     99     * @param string $name
     100     * @return mixed
     101     */
     102    public function __unset( $name ) {
     103        unset( $this->$name );
     104    }
    84105
    85106    /**
Note: See TracChangeset for help on using the changeset viewer.