Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/27/2021 04:56:32 AM (9 months ago)
Author:
imath
Message:

Improve ways to disable BP RSS feeds

Returning false to the filter bp_activity_enable_feeds is completely disabling all RSS feeds and will now avoid the output of an empty link.

A second argument has been added to the filter to allow to disable a specific feed in particular, one of these feed identifiers:

  • 'sitewide',
  • 'personal',
  • 'friends',
  • 'mygroups',
  • 'mentions',
  • 'favorites'.

The BP Nouveau Template pack has also been improved to update the user's profile activity RSS feed links according to the context.

Props sippis

Fixes #8454

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/activity/loader.php

    r12192 r12907  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 8.0.0
    77 */
    88
     
    1616 */
    1717class BP_Nouveau_Activity {
     18    /**
     19     * Nouveau Activity directory.
     20     *
     21     * @since 3.0.0
     22     * @var string
     23     */
     24    public $dir = '';
     25
     26    /**
     27     * RSS feed link data.
     28     *
     29     * @since 3.0.0
     30     * @var string
     31     */
     32    public $current_rss_feed = array();
     33
    1834    /**
    1935     * Constructor
Note: See TracChangeset for help on using the changeset viewer.