Skip to:
Content

BuddyPress.org

Changeset 2828


Ignore:
Timestamp:
03/10/2010 01:04:02 PM (15 years ago)
Author:
apeatling
Message:

Don't show the activity stream as an option for the front page if the activity stream component is not enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-themes/bp-default/functions.php

    r2746 r2828  
    7272/* Filter the dropdown for selecting the page to show on front to include "Activity Stream" */
    7373function bp_dtheme_wp_pages_filter( $page_html ) {
     74    if ( !bp_is_active( 'activity' ) )
     75        return $page_html;
     76
    7477    if ( 'page_on_front' != substr( $page_html, 14, 13 ) )
    7578        return $page_html;
Note: See TracChangeset for help on using the changeset viewer.