Changeset 13311
- Timestamp:
- 08/09/2022 06:23:32 PM (2 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r13215 r13311 457 457 // Use an alias to leave the param unchanged. 458 458 $avatar_classes = $params['class']; 459 if ( ! is_array( $avatar_classes ) ) { 459 if ( is_null( $avatar_classes ) ) { 460 $avatar_classes = array(); 461 } elseif ( ! is_array( $avatar_classes ) ) { 460 462 $avatar_classes = explode( ' ', $avatar_classes ); 461 463 } -
trunk/src/bp-core/classes/class-bp-core-bp-nav-backcompat.php
r11447 r13311 61 61 * @param array $value Nav item. 62 62 */ 63 #[ReturnTypeWillChange] 63 64 public function offsetSet( $offset, $value ) { 64 65 _doing_it_wrong( … … 95 96 * @return BP_Core_BP_Nav_BackCompat 96 97 */ 98 #[ReturnTypeWillChange] 97 99 public function offsetGet( $offset ) { 98 100 _doing_it_wrong( … … 102 104 ); 103 105 104 // if ( ! isset( $this->backcompat_nav[ $offset ] ) ) { 105 $nav = $this->get_nav( $offset ); 106 if ( $nav && isset( $nav[ $offset ] ) ) { 107 $this->backcompat_nav[ $offset ] = new self( $nav[ $offset ] ); 108 } 109 // } 106 $nav = $this->get_nav( $offset ); 107 if ( $nav && isset( $nav[ $offset ] ) ) { 108 $this->backcompat_nav[ $offset ] = new self( $nav[ $offset ] ); 109 } 110 110 111 111 return $this->backcompat_nav[ $offset ]; … … 120 120 * @return bool 121 121 */ 122 #[ReturnTypeWillChange] 122 123 public function offsetExists( $offset ) { 123 124 _doing_it_wrong( … … 146 147 * @param mixed $offset Array offset. 147 148 */ 149 #[ReturnTypeWillChange] 148 150 public function offsetUnset( $offset ) { 149 151 _doing_it_wrong(
Note: See TracChangeset
for help on using the changeset viewer.