diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
index 5556ac6..4380f08 100644
|
|
|
function groups_is_user_creator( $user_id, $group_id ) { |
| 893 | 893 | /** |
| 894 | 894 | * Post an Activity status update affiliated with a group. |
| 895 | 895 | * |
| 896 | | * @todo Should bail out when the Activity component is not active. |
| 897 | | * |
| 898 | 896 | * @param array|string $args { |
| 899 | 897 | * Array of arguments. |
| 900 | 898 | * @type string $content The content of the update. |
| … |
… |
function groups_is_user_creator( $user_id, $group_id ) { |
| 903 | 901 | * @type int $group_id Optional. ID of the group to be affiliated with the |
| 904 | 902 | * update. Default: ID of the current group. |
| 905 | 903 | * } |
| 906 | | * @return int |
| | 904 | * @return int|bool |
| 907 | 905 | */ |
| 908 | 906 | function groups_post_update( $args = '' ) { |
| | 907 | |
| | 908 | if ( ! bp_is_active( 'activity' ) ) { |
| | 909 | return false; |
| | 910 | } |
| | 911 | |
| 909 | 912 | $bp = buddypress(); |
| 910 | 913 | |
| 911 | 914 | $defaults = array( |