Ticket #2190: 2190.01.patch
File 2190.01.patch, 1.5 KB (added by , 12 years ago) |
---|
-
includes/replies/template-tags.php
function bbp_has_replies( $args = '' ) { 118 118 119 119 // Call the query 120 120 $bbp->reply_query = new WP_Query( $r ); 121 121 122 122 // Add pagination values to query object 123 123 $bbp->reply_query->posts_per_page = $r['posts_per_page']; 124 124 $bbp->reply_query->paged = $r['paged']; … … function bbp_has_replies( $args = '' ) { 137 137 // If pretty permalinks are enabled, make our pagination pretty 138 138 if ( $wp_rewrite->using_permalinks() ) { 139 139 140 // Page or single141 if ( is_page() || is_single() ) {142 $base = get_permalink();143 144 140 // User's replies 145 } elseif ( bbp_is_single_user_replies() ) {141 if ( bbp_is_single_user_replies() ) { 146 142 $base = bbp_get_user_replies_created_url( bbp_get_displayed_user_id() ); 147 143 144 // Root profile page 145 } elseif ( bbp_is_single_user() ) { 146 $base = bbp_get_user_profile_url( bbp_get_displayed_user_id() ); 147 148 // Page or single post 149 } elseif ( is_page() || is_single() ) { 150 $base = get_permalink(); 151 148 152 // Single topic 149 153 } else { 150 154 $base = get_permalink( bbp_get_topic_id() ); … … function bbp_reply_spam_link( $args = '' ) { 1756 1760 * @return string Reply spam link 1757 1761 */ 1758 1762 function bbp_get_reply_spam_link( $args = '' ) { 1759 1763 1760 1764 // Parse arguments against default values 1761 1765 $r = bbp_parse_args( $args, array( 1762 1766 'id' => 0,