Changeset 13432 for trunk/src/class-buddypress.php
- Timestamp:
- 03/01/2023 08:17:11 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/class-buddypress.php
r13431 r13432 307 307 */ 308 308 public function __get( $key ) { 309 return isset( $this->data[ $key ] ) ? $this->data[ $key ] : null; 309 $valid_key = $key; 310 if ( 'root_domain' === $key ) { 311 _doing_it_wrong( 'root_domain', __( 'The root_domain BuddyPress main class property is deprecated since 12.0.0, please use the root_url property instead.', 'buddypress' ), 'BuddyPress 12.0.0' ); 312 $valid_key = 'root_url'; 313 } 314 315 return isset( $this->data[ $valid_key ] ) ? $this->data[ $valid_key ] : null; 310 316 } 311 317 … … 319 325 */ 320 326 public function __set( $key, $value ) { 321 $this->data[ $key ] = $value; 327 $valid_key = $key; 328 if ( 'root_domain' === $key ) { 329 _doing_it_wrong( 'root_domain', __( 'The root_domain BuddyPress main class property is deprecated since 12.0.0, please use the root_url property instead.', 'buddypress' ), 'BuddyPress 12.0.0' ); 330 $valid_key = 'root_url'; 331 } 332 333 $this->data[ $valid_key ] = $value; 322 334 } 323 335
Note: See TracChangeset
for help on using the changeset viewer.