Skip to:
Content

BuddyPress.org

Ticket #8507: 8507.diff

File 8507.diff, 700 bytes (added by sbrajesh, 3 years ago)
  • src/bp-core/classes/class-bp-theme-compat.php

    diff --git a/src/bp-core/classes/class-bp-theme-compat.php b/src/bp-core/classes/class-bp-theme-compat.php
    index 215ee7204..329e6050d 100644
    a b class BP_Theme_Compat { 
    117117        public function __get( $property ) {
    118118                return array_key_exists( $property, $this->_data ) ? $this->_data[$property] : '';
    119119        }
     120
     121        /**
     122         * Checks if a dynamic property exists.
     123         *
     124         * @since 9.0.0
     125         *
     126         * @param string $property Property name.
     127         * @return bool true if exists otherwise false.
     128         */
     129        public function __isset( $property ) {
     130                return array_key_exists( $property, $this->_data );
     131        }
    120132}