Skip to:
Content

BuddyPress.org

Changeset 3911


Ignore:
Timestamp:
01/24/2011 02:34:53 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Fix forums directory permalink function to use root_slug rather than slug. Also use trailingslashit through-out forums permalink functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r3910 r3911  
    11011101
    11021102        if ( $bp->is_single_item )
    1103             $permalink = $bp->root_domain . '/' . $bp->current_component . '/' . $bp->current_item . '/';
     1103            $permalink = trailingslashit( $bp->root_domain . '/' . $bp->current_component . '/' . $bp->current_item );
    11041104        else
    1105             $permalink = $bp->root_domain . $bp->current_component . '/' . $bp->current_action . '/';
    1106 
    1107         return apply_filters( 'bp_get_forum_permalink', $permalink . 'forum' );
     1105            $permalink = trailingslashit( $bp->root_domain . $bp->current_component . '/' . $bp->current_action );
     1106
     1107        return apply_filters( 'bp_get_forum_permalink', trailingslashit( $permalink . 'forum' ) );
    11081108    }
    11091109
     
    11141114        global $bp;
    11151115
    1116         return apply_filters( 'bp_get_forum_directory_permalink', $bp->root_domain . '/' . $bp->forums->slug );
     1116        return apply_filters( 'bp_get_forum_directory_permalink', trailingslashit( $bp->root_domain . '/' . $bp->forums->root_slug ) );
    11171117    }
    11181118
     
    11201120    $defaults = array(
    11211121        'smallest' => '10',
    1122         'largest' => '42',
    1123         'sizing' => 'px',
    1124         'limit' => '50'
     1122        'largest'  => '42',
     1123        'sizing'   => 'px',
     1124        'limit'    => '50'
    11251125    );
    11261126
Note: See TracChangeset for help on using the changeset viewer.