Changeset 13338
- Timestamp:
- 10/06/2022 11:12:28 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/classes/class-bp-buttons-group.php
r13153 r13338 126 126 */ 127 127 public function update( $args = array() ) { 128 $button_group = array(); 129 130 if ( is_array( $this->group ) ) { 131 $button_group = $this->group; 132 } 133 134 // If the cached button group args contains a key that is missing from args, remove it. 135 $diff = array_diff_key( $button_group, $args ); 136 if ( $diff ) { 137 $this->group = array_intersect_key( $button_group, $args ); 138 } 139 128 140 foreach ( $args as $id => $params ) { 129 141 if ( isset( $this->group[ $id ] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.