Skip to:
Content

bbPress.org

Changeset 3354


Ignore:
Timestamp:
06/30/2011 06:14:48 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Adjust the check-order of pagination permalinks in bbp_has_topics(), allowing shortcode usage pagination to work. Fixes #1567.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3353 r3354  
    245245                $base = user_trailingslashit( trailingslashit( bbp_get_view_url() ) . 'page/%#%/' );
    246246
     247            // Page or single post
     248            elseif ( is_page() || is_single() )
     249                $base = user_trailingslashit( trailingslashit( get_permalink() ) . 'page/%#%/' );
     250
    247251            // Topic archive
    248252            elseif ( bbp_is_topic_archive() )
    249253                $base = user_trailingslashit( trailingslashit( home_url( $bbp->topic_archive_slug ) ) . 'page/%#%/' );
    250 
    251             // Page or single post
    252             elseif ( is_page() || is_single() )
    253                 $base = user_trailingslashit( trailingslashit( get_permalink() ) . 'page/%#%/' );
    254254
    255255            // Default
Note: See TracChangeset for help on using the changeset viewer.