Skip to:
Content

bbPress.org

Changeset 3723


Ignore:
Timestamp:
01/29/2012 10:17:51 PM (10 years ago)
Author:
johnjamesjacoby
Message:

In BuddyPress group forum extension, use raw forum slug option to avoid including the forum prefix. See #1669.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-extend-buddypress.php

    r3721 r3723  
    936936     */
    937937    function __construct() {
    938         global $bbp;
    939938
    940939        // Name and slug
    941940        $this->name          = __( 'Forums', 'bbpress' );
    942941        $this->nav_item_name = __( 'Forums', 'bbpress' );
    943         $this->slug          = $bbp->forum_slug;
     942        $this->slug          = bp_get_option( '_bbp_forum_slug', 'forum' );
    944943
    945944        // Forum component is visible @todo configure?
     
    961960
    962961    function display() {
    963         global $bbp;
    964962
    965963        // More than one forum, so show hierarchy
Note: See TracChangeset for help on using the changeset viewer.