Changeset 12395 for trunk/src/bp-activity/bp-activity-admin.php
- Timestamp:
- 05/11/2019 01:33:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-admin.php
r11907 r12395 841 841 842 842 for ( $i = 0, $i_count = count( $action ); $i < $i_count; $i++ ) { 843 /** 844 * Don't take in account: 845 * - a mis-named Friends activity type from before BP 1.6, 846 * - The Group's component 'activity_update' one as the Activity component is using it. 847 */ 848 if ( 'friends_register_activity_action' === $action[$i]['key'] || 'bp_groups_format_activity_action_group_activity_update' === $action[$i]['format_callback'] ) { 849 continue; 850 } 851 843 852 $actions[ $action[$i]['key'] ] = $action[$i]['value']; 844 853 } 845 854 } 846 855 847 // This was a mis-named activity type from before BP 1.6.848 unset( $actions['friends_register_activity_action'] );849 850 856 // Sort array by the human-readable value. 851 857 natsort( $actions ); … … 871 877 $action = array_values( (array) $action ); 872 878 873 for ( $i = 0, $i_count = count( $action ); $i < $i_count; $i++ ) 879 for ( $i = 0, $i_count = count( $action ); $i < $i_count; $i++ ) { 880 /** 881 * Don't take in account: 882 * - a mis-named Friends activity type from before BP 1.6, 883 * - The Group's component 'activity_update' one as the Activity component is using it. 884 */ 885 if ( 'friends_register_activity_action' === $action[$i]['key'] || 'bp_groups_format_activity_action_group_activity_update' === $action[$i]['format_callback'] ) { 886 continue; 887 } 888 874 889 $actions[ $action[$i]['key'] ] = $action[$i]['value']; 890 } 875 891 } 876 877 // This was a mis-named activity type from before BP 1.6.878 unset( $actions['friends_register_activity_action'] );879 892 880 893 // Sort array by the human-readable value.
Note: See TracChangeset
for help on using the changeset viewer.