Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/08/2022 08:29:33 PM (3 years ago)
Author:
johnjamesjacoby
Message:

URLs: fix incorrect links for certain topic statuses.

This change prefers bbp_is_topic_public() over ! bbp_is_topic_pending() to determine whether or not certain reply & topic URLs should be "pretty".

Props dd32.

In branches/2.6, for 2.6.10.

Fixes #3424.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/replies/template.php

    r7238 r7247  
    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
Note: See TracChangeset for help on using the changeset viewer.