Changeset 7279
- Timestamp:
- 07/05/2024 05:54:33 PM (9 months ago)
- Location:
- trunk/src/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r7275 r7279 1265 1265 /** Topic *****************************************************************/ 1266 1266 1267 // Bail if topic is not public ( includes closed)1267 // Bail if topic is not public (both open/closed are public) 1268 1268 if ( ! bbp_is_topic_public( $topic_id ) ) { 1269 1269 return false; … … 1311 1311 $topic_author_name = wp_specialchars_decode( strip_tags( $topic_author_name ), ENT_QUOTES ); 1312 1312 $topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES ); 1313 $topic_url = get_permalink( $topic_id );1313 $topic_url = bbp_get_topic_permalink( $topic_id ); 1314 1314 1315 1315 // For plugins to filter messages per reply/topic/user -
trunk/src/includes/topics/template.php
r7276 r7279 809 809 $has_slug = bbp_get_topic( $r['topic_id'] )->post_name; 810 810 811 // Get the topic permalink 812 $topic_permalink = bbp_get_topic_permalink( $r['topic_id'] ); 813 811 814 // If pretty permalinks are enabled, make our pagination pretty 812 815 $base = ! empty( $has_slug ) && bbp_use_pretty_urls() && bbp_is_topic_public( $r['topic_id'] ) 813 ? trailingslashit( get_permalink( $r['topic_id'] )) . user_trailingslashit( bbp_get_paged_slug() . '/%#%/' )814 : add_query_arg( 'paged', '%#%', get_permalink( $r['topic_id'] ));816 ? trailingslashit( $topic_permalink ) . user_trailingslashit( bbp_get_paged_slug() . '/%#%/' ) 817 : add_query_arg( 'paged', '%#%', $topic_permalink ); 815 818 816 819 // Get total and add 1 if topic is included in the reply loop
Note: See TracChangeset
for help on using the changeset viewer.