Skip to:
Content

bbPress.org

Ticket #3424: 3424.02.patch

File 3424.02.patch, 1.1 KB (added by johnjamesjacoby, 19 months ago)
  • src/includes/replies/template.php

     
    465465                // Get vars needed to support pending topics with unpretty links
    466466                $has_slug   = ! empty( $topic ) ? $topic->post_name : '';
    467467                $pretty     = bbp_use_pretty_urls();
    468                 $published  = ! bbp_is_topic_pending( $topic_id );
     468                $published  = bbp_is_topic_public( $topic_id );
    469469
    470470                // Don't include pagination if on first page
    471471                if ( 1 >= $reply_page ) {
  • src/includes/topics/template.php

     
    808808                $has_slug = bbp_get_topic( $r['topic_id'] )->post_name;
    809809
    810810                // If pretty permalinks are enabled, make our pagination pretty
    811                 $base = ! empty( $has_slug ) && bbp_use_pretty_urls() && ! bbp_is_topic_pending( $r['topic_id'] )
     811                $base = ! empty( $has_slug ) && bbp_use_pretty_urls() && bbp_is_topic_public( $r['topic_id'] )
    812812                        ? trailingslashit( get_permalink( $r['topic_id'] ) ) . user_trailingslashit( bbp_get_paged_slug() . '/%#%/' )
    813813                        : add_query_arg( 'paged', '%#%', get_permalink( $r['topic_id'] ) );
    814814