Skip to:
Content

bbPress.org

Changeset 3226


Ignore:
Timestamp:
05/25/2011 09:51:08 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Add topic pagination support for pages or any single post, for improved shortcode support. Fixes #1533.

File:
1 edited

Legend:

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

    r3187 r3226  
    244244            elseif ( is_post_type_archive( bbp_get_topic_post_type() ) )
    245245                $base = user_trailingslashit( trailingslashit( home_url( $bbp->topic_archive_slug ) ) . 'page/%#%/' );
     246
     247            // Page or single post
     248            elseif ( is_page() || is_single() )
     249                $base = user_trailingslashit( trailingslashit( get_permalink() ) . 'page/%#%/' );
    246250
    247251            // Default
Note: See TracChangeset for help on using the changeset viewer.