Skip to:
Content

bbPress.org

Ticket #1927: bbpress-paging-patch.diff

File bbpress-paging-patch.diff, 618 bytes (added by ddean, 9 years ago)

Patch against plugin branch

  • bbp-includes/bbp-reply-template.php

     
    109109        if ( (int) $bbp->reply_query->found_posts && (int) $bbp->reply_query->posts_per_page ) {
    110110
    111111                // If pretty permalinks are enabled, make our pagination pretty
    112                 if ( $wp_rewrite->using_permalinks() ) {
     112                if ( ( is_page() || is_singular( bbp_get_topic_post_type() ) ) && $wp_rewrite->using_permalinks() ) {
    113113
    114114                        // Page or single
    115115                        if ( is_page() || is_single() ) {