Changeset 3332 for branches/plugin/bbp-includes/bbp-reply-template.php
- Timestamp:
- 06/19/2011 09:05:10 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-reply-template.php
r3325 r3332 87 87 88 88 // What are the default allowed statuses (based on user caps) 89 if ( bbp_get_view_all( 'edit_others_replies' ) ) 89 if ( bbp_get_view_all( 'edit_others_replies' ) ) { 90 90 $default_status = join( ',', array( 'publish', $bbp->closed_status_id, $bbp->spam_status_id, 'trash' ) ); 91 } 91 92 } 92 93 … … 140 141 141 142 // If pretty permalinks are enabled, make our pagination pretty 142 if ( $wp_rewrite->using_permalinks() ) 143 if ( $wp_rewrite->using_permalinks() ) { 143 144 144 145 // Page or single 145 if ( is_page() || is_single() ) 146 if ( is_page() || is_single() ) { 146 147 $base = user_trailingslashit( trailingslashit( get_permalink() ) . 'page/%#%/' ); 147 148 148 149 // Topic 149 else150 } else { 150 151 $base = user_trailingslashit( trailingslashit( get_permalink( bbp_get_topic_id() ) ) . 'page/%#%/' ); 151 152 else 152 } 153 154 // Unpretty permalinks 155 } else { 153 156 $base = add_query_arg( 'paged', '%#%' ); 157 } 154 158 155 159 // Pagination settings with filter
Note: See TracChangeset
for help on using the changeset viewer.