Changeset 11557 for trunk/src/bp-groups/bp-groups-activity.php
- Timestamp:
- 05/17/2017 06:57:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-activity.php
r11447 r11557 190 190 } elseif ( ! empty( $changed['description']['old'] ) && ! empty( $changed['description']['new'] ) ) { 191 191 $action = sprintf( __( '%1$s changed the description of the group %2$s from "%3$s" to "%4$s"', 'buddypress' ), $user_link, $group_link, esc_html( $changed['description']['old'] ), esc_html( $changed['description']['new'] ) ); 192 193 } elseif ( ! empty( $changed['slug']['old'] ) && ! empty( $changed['slug']['new'] ) ) { 194 $action = sprintf( __( '%1$s changed the permalink of the group %2$s.', 'buddypress' ), $user_link, $group_link ); 192 195 193 196 } … … 462 465 } 463 466 464 if ( ! isset( $old_group->name ) || ! isset( $old_group-> description ) ) {467 if ( ! isset( $old_group->name ) || ! isset( $old_group->slug ) || ! isset( $old_group->description ) ) { 465 468 return false; 466 469 } … … 487 490 'old' => $old_group->name, 488 491 'new' => $group->name, 492 ); 493 } 494 495 if ( $group->slug !== $old_group->slug ) { 496 $changed['slug'] = array( 497 'old' => $old_group->slug, 498 'new' => $group->slug, 489 499 ); 490 500 }
Note: See TracChangeset
for help on using the changeset viewer.