Changeset 2789 for branches/plugin/bbp-includes/bbp-topic-template.php
- Timestamp:
- 01/09/2011 10:06:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-template.php
r2788 r2789 73 73 if ( empty( $default['post_parent'] ) ) { 74 74 unset( $default['post_parent'] ); 75 if ( !bbp_is_user_profile_page() && !bbp_is_user_profile_edit() )75 if ( !bbp_is_user_profile_page() && !bbp_is_user_profile_edit() && !bbp_is_view() ) 76 76 $post_parent = get_the_ID(); 77 77 } … … 167 167 168 168 // If pretty permalinks are enabled, make our pagination pretty 169 if ( $wp_rewrite->using_permalinks() && bbp_is_user_profile_page() ) 170 $base = $base = user_trailingslashit( trailingslashit( bbp_get_user_profile_url( bbp_get_displayed_user_id() ) ) . 'page/%#%/' ); 171 elseif ( $wp_rewrite->using_permalinks() ) 172 $base = user_trailingslashit( trailingslashit( get_permalink( $post_parent ) ) . 'page/%#%/' ); 173 else 169 if ( $wp_rewrite->using_permalinks() ) { 170 if ( bbp_is_user_profile_page() ) 171 $base = user_trailingslashit( trailingslashit( bbp_get_user_profile_url( bbp_get_displayed_user_id() ) ) . 'page/%#%/' ); 172 elseif ( bbp_is_view() ) 173 $base = user_trailingslashit( trailingslashit( bbp_get_view_url() ) . 'page/%#%/' ); 174 else 175 $base = user_trailingslashit( trailingslashit( get_permalink( $post_parent ) ) . 'page/%#%/' ); 176 } else { 174 177 $base = add_query_arg( 'paged', '%#%' ); 178 } 175 179 176 180
Note: See TracChangeset
for help on using the changeset viewer.