Changeset 6109 for trunk/src/includes/users/capabilities.php
- Timestamp:
- 11/01/2016 07:24:50 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/users/capabilities.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/capabilities.php
r6056 r6109 812 812 */ 813 813 function bbp_add_moderator( $object_id = 0, $user_id = 0 ) { 814 return add_post_meta( $object_id, '_bbp_moderator_id', $user_id);814 return bbp_add_user_to_object( $object_id, $user_id, '_bbp_moderator_id' ); 815 815 } 816 816 … … 826 826 */ 827 827 function bbp_remove_moderator( $object_id = 0, $user_id = 0 ) { 828 return delete_post_meta( $object_id, '_bbp_moderator_id', $user_id);828 return bbp_remove_user_from_object( $object_id, $user_id, '_bbp_moderator_id' ); 829 829 } 830 830 … … 839 839 */ 840 840 function bbp_get_moderator_ids( $object_id = 0 ) { 841 return get_post_meta( $object_id, '_bbp_moderator_id', false);841 return bbp_get_users_for_object( $object_id, '_bbp_moderator_id' ); 842 842 } 843 843
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)