Skip to:
Content

bbPress.org

Changeset 5413


Ignore:
Timestamp:
06/18/2014 04:47:46 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Deprecate bbp_notify_subscribers() for new bbp_notify_topic_subscribers() function, to better match bbp_notify_forum_subscribers() introduced in 2.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r5409 r5413  
    10101010 * custom emailer script.
    10111011 *
    1012  * @since bbPress (r2668)
     1012 * @since bbPress (r5413)
    10131013 *
    10141014 * @param int $reply_id ID of the newly made reply
     1015 * @param int $topic_id ID of the topic of the reply
     1016 * @param int $forum_id ID of the forum of the reply
     1017 * @param mixed $anonymous_data Array of anonymous user data
     1018 * @param int $reply_author ID of the topic author ID
     1019 *
    10151020 * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    10161021 * @uses bbp_get_reply_id() To validate the reply ID
     
    10371042 * @return bool True on success, false on failure
    10381043 */
    1039 function bbp_notify_subscribers( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $reply_author = 0 ) {
     1044function bbp_notify_topic_subscribers( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $reply_author = 0 ) {
    10401045
    10411046    // Bail if subscriptions are turned off
     
    11691174 *
    11701175 * @param int $topic_id ID of the newly made reply
     1176 * @param int $forum_id ID of the forum for the topic
     1177 * @param mixed $anonymous_data Array of anonymous user data
     1178 * @param int $topic_author ID of the topic author ID
     1179 *
    11711180 * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    11721181 * @uses bbp_get_topic_id() To validate the topic ID
     
    12971306}
    12981307
     1308/**
     1309 * Sends notification emails for new replies to subscribed topics
     1310 *
     1311 * This function is deprecated. Please use: bbp_notify_topic_subscribers()
     1312 *
     1313 * @since bbPress (r2668)
     1314 * @deprecated bbPress (r5412)
     1315 *
     1316 * @param int $reply_id ID of the newly made reply
     1317 * @param int $topic_id ID of the topic of the reply
     1318 * @param int $forum_id ID of the forum of the reply
     1319 * @param mixed $anonymous_data Array of anonymous user data
     1320 * @param int $reply_author ID of the topic author ID
     1321 *
     1322 * @return bool True on success, false on failure
     1323 */
     1324function bbp_notify_subscribers( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $reply_author = 0 ) {
     1325    return bbp_notify_topic_subscribers( $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author );
     1326}
     1327
    12991328/** Login *********************************************************************/
    13001329
Note: See TracChangeset for help on using the changeset viewer.