Skip to:
Content

BuddyPress.org

Changeset 10781


Ignore:
Timestamp:
05/19/2016 03:25:01 AM (9 years ago)
Author:
boonebgorges
Message:

Pass $thread_id to a number of Messages template filters.

Props Offereins.
See #6997.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-template.php

    r10652 r10781  
    305305         *
    306306         * @since 1.0.0
    307          *
    308          * @param string $value permalink of a particular thread.
    309          */
    310         return apply_filters( 'bp_get_message_thread_view_link', trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/view/' . $thread_id ) );
     307         * @since 2.6.0 Added the `$thread_id` parameter.
     308         *
     309         * @param string $value     Permalink of a particular thread.
     310         * @param int    $thread_id ID of the thread.
     311         */
     312        return apply_filters( 'bp_get_message_thread_view_link', trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/view/' . $thread_id ), $thread_id );
    311313    }
    312314
     
    547549         *
    548550         * @since 2.2.0
    549          *
    550          * @param int $count Current thread total message count.
    551          */
    552         return apply_filters( 'bp_get_message_thread_total_count', $count );
     551         * @since 2.6.0 Added the `$thread_id` parameter.
     552         *
     553         * @param int $count     Current thread total message count.
     554         * @param int $thread_id ID of the queried thread.
     555         */
     556        return apply_filters( 'bp_get_message_thread_total_count', $count, $thread_id );
    553557    }
    554558
Note: See TracChangeset for help on using the changeset viewer.