Changeset 6931 for trunk/src/includes/replies/template.php
- Timestamp:
- 11/09/2019 06:36:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r6923 r6931 441 441 if ( bbp_is_reply( $reply_id ) ) { 442 442 $topic_id = bbp_get_reply_topic_id( $reply_id ); 443 $topic = bbp_get_topic( $topic_id ); 443 444 } elseif ( bbp_is_topic( $reply_id ) ) { 444 445 $topic_id = bbp_get_topic_id( $reply_id ); 446 $topic = bbp_get_topic( $topic_id ); 445 447 $reply_id = $topic_id; 446 448 } … … 461 463 462 464 // Get vars needed to support pending topics with unpretty links 463 $has_slug = bbp_get_topic( $topic_id )->post_name;465 $has_slug = ! empty( $topic ) ? $topic->post_name : ''; 464 466 $pretty = bbp_use_pretty_urls(); 465 467 $published = ! bbp_is_topic_pending( $topic_id );
Note: See TracChangeset
for help on using the changeset viewer.