diff --git bp-activity/bp-activity-admin.php bp-activity/bp-activity-admin.php
index 4912da0..5a126f3 100644
|
|
|
function bp_activity_admin_edit_metabox_type( $item ) { |
| 762 | 762 | unset( $actions['friends_register_activity_action'] ); |
| 763 | 763 | |
| 764 | 764 | // Sort array by the human-readable value |
| 765 | | natsort( $actions ); ?> |
| | 765 | natsort( $actions ); |
| | 766 | |
| | 767 | // If the activity type is not registered properly (eg, a plugin has |
| | 768 | // not called bp_activity_set_action()), add the raw type to the end |
| | 769 | // of the list |
| | 770 | if ( ! isset( $actions[ $selected ] ) ) { |
| | 771 | $actions[ $selected ] = $selected; |
| | 772 | } |
| | 773 | |
| | 774 | ?> |
| 766 | 775 | |
| 767 | 776 | <select name="bp-activities-type"> |
| 768 | 777 | <?php foreach ( $actions as $k => $v ) : ?> |