Skip to:
Content

bbPress.org

Ticket #3176: 3176-2.diff

File 3176-2.diff, 1.3 KB (added by espellcaste, 3 years ago)

Updated version!

  • src/includes/users/engagements.php

     
    459459 * @since 2.0.0 bbPress (r2652)
    460460 * @since 2.6.0 bbPress (r6618) Signature changed to accept an array of arguments
    461461 *
    462  * @param array $args Optional. Arguments to pass into bbp_has_replies()
     462 * @param array $args Optional. Arguments to pass into bbp_has_topics()
    463463 *
    464464 * @return bool True if user has favorites, otherwise false
    465465 */
     
    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 );