Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/31/2018 02:37:23 PM (8 years ago)
Author:
djpaul
Message:

Activity: add new argument to duplicated bp_activity_comment_content filter.

This filter is unfortunately used in two places (bp_activity_new_comment() and bp_get_activity_comment_content()).
The new parameter should help 3rd party developers where the filter is called from.

Fixes #5079

Props tw2113

File:
1 edited

Legend:

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

    r11764 r11837  
    21372137         *
    21382138         * @since 1.2.0
     2139         * @since 3.0.0 Added $context parameter to disambiguate from bp_get_activity_comment_content().
    21392140         *
    21402141         * @param string $content The content of the current activity comment.
    2141          */
    2142         return apply_filters( 'bp_activity_comment_content', $content );
     2142         * @param string $context This filter's context ("get").
     2143         */
     2144        return apply_filters( 'bp_activity_comment_content', $content, 'get' );
    21432145    }
    21442146
Note: See TracChangeset for help on using the changeset viewer.