Changeset 6684 for branches/2.5/includes/topics/template.php
- Timestamp:
- 09/09/2017 02:43:03 PM (9 years ago)
- File:
-
- 1 edited
-
branches/2.5/includes/topics/template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/includes/topics/template.php
r5693 r6684 1506 1506 if ( empty( $anonymous ) && bbp_user_has_profile( bbp_get_topic_author_id( $topic_id ) ) ) { 1507 1507 1508 $author_link = array(); 1509 1508 1510 // Assemble the links 1509 1511 foreach ( $author_links as $link => $link_text ) { … … 3803 3805 } 3804 3806 3807 $new_terms = array(); 3808 3805 3809 // Topic exists 3806 3810 if ( !empty( $topic_id ) ) { … … 3808 3812 // Topic is spammed so display pre-spam terms 3809 3813 if ( bbp_is_topic_spam( $topic_id ) ) { 3810 3811 // Get pre-spam terms3812 3814 $new_terms = get_post_meta( $topic_id, '_bbp_spam_topic_tags', true ); 3813 3814 // If terms exist, explode them and compile the return value3815 if ( empty( $new_terms ) ) {3816 $new_terms = '';3817 }3818 3815 3819 3816 // Topic is not spam so get real terms 3820 3817 } else { 3821 $terms = array_filter( (array) get_the_terms( $topic_id, bbp_get_topic_tag_tax_id() ) ); 3822 3823 // Loop through them 3824 foreach ( $terms as $term ) { 3825 $new_terms[] = $term->name; 3826 } 3818 $terms = array_filter( (array) get_the_terms( $topic_id, bbp_get_topic_tag_tax_id() ) ); 3819 $new_terms = wp_list_pluck( $terms, 'name' ); 3827 3820 } 3828 3829 // Define local variable(s)3830 } else {3831 $new_terms = '';3832 3821 } 3833 3822
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)