Changeset 6684
- Timestamp:
- 09/09/2017 02:43:03 PM (6 years ago)
- Location:
- branches/2.5/includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/includes/common/template.php
r5698 r6684 1820 1820 function bbp_get_tiny_mce_plugins( $plugins = array() ) { 1821 1821 1822 $plugins = (array) $plugins; 1823 1822 1824 // Unset fullscreen 1823 1825 foreach ( $plugins as $key => $value ) { -
branches/2.5/includes/forums/functions.php
r6647 r6684 1849 1849 1850 1850 // Get any existing meta queries 1851 $meta_query = $posts_query->get( 'meta_query', array() );1851 $meta_query = (array) $posts_query->get( 'meta_query', array() ); 1852 1852 1853 1853 // Add our meta query to existing -
branches/2.5/includes/replies/template.php
r5692 r6684 1235 1235 if ( empty( $anonymous ) && bbp_user_has_profile( bbp_get_reply_author_id( $reply_id ) ) ) { 1236 1236 1237 $author_link = array(); 1238 1237 1239 // Assemble the links 1238 1240 foreach ( $author_links as $link => $link_text ) { -
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 -
branches/2.5/includes/users/template.php
r6647 r6684 1675 1675 if ( empty( $anonymous ) && bbp_user_has_profile( $user_id ) ) { 1676 1676 $author_url = bbp_get_user_profile_url( $user_id ); 1677 $author_link = array(); 1677 1678 foreach ( $author_links as $link_text ) { 1678 1679 $author_link[] = sprintf( '<a href="%1$s"%2$s>%3$s</a>', esc_url( $author_url ), $link_title, $link_text );
Note: See TracChangeset
for help on using the changeset viewer.