Skip to:
Content

bbPress.org

Ticket #3176: 3176.diff

File 3176.diff, 970 bytes (added by espellcaste, 3 years ago)
  • src/includes/users/engagements.php

     
    528528 * @param int $user_id Optional. User id
    529529 * @param int $topic_id Optional. Topic id
    530530 *
    531  * @return bool Always true
     531 * @return bool True if the topic was added to user's favorites, otherwise false
    532532 */
    533533function bbp_add_user_favorite( $user_id = 0, $topic_id = 0 ) {
    534534        $user_id  = bbp_get_user_id( $user_id, false, false );
     
    562562 * @param int $user_id Optional. User id
    563563 * @param int $topic_id Optional. Topic id
    564564 *
    565  * @return bool True if the topic was removed from user's favorites, or false
     565 * @return bool True if the topic was removed from user's favorites, otherwise false
    566566 */
    567567function bbp_remove_user_favorite( $user_id, $topic_id ) {
    568568        $user_id  = bbp_get_user_id( $user_id, false, false );