Changeset 3505 for branches/plugin/bbp-includes/bbp-common-template.php
- Timestamp:
- 09/10/2011 10:27:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-common-template.php
r3472 r3505 253 253 */ 254 254 function bbp_is_topic_tag() { 255 global $bbp ;255 global $bbp, $wp_query; 256 256 257 257 // Return false if editing a topic tag … … 259 259 return false; 260 260 261 if ( is_tax( bbp_get_topic_tag_tax_id() ) || !empty( $bbp->topic_query->is_tax ) )261 if ( is_tax( bbp_get_topic_tag_tax_id() ) || !empty( $bbp->topic_query->is_tax ) || get_query_var( 'bbp_topic_tag' ) ) 262 262 return true; 263 263 … … 919 919 */ 920 920 function bbp_get_dropdown( $args = '' ) { 921 global $bbp;922 921 923 922 /** Arguments *********************************************************/ … … 962 961 963 962 // Public 964 $post_stati[] = 'publish';963 $post_stati[] = bbp_get_public_status_id(); 965 964 966 965 // Forums … … 969 968 // Private forums 970 969 if ( current_user_can( 'read_private_forums' ) ) 971 $post_stati[] = 'private';970 $post_stati[] = bbp_get_private_status_id(); 972 971 973 972 // Hidden forums 974 973 if ( current_user_can( 'read_hidden_forums' ) ) 975 $post_stati[] = $bbp->hidden_status_id;974 $post_stati[] = bbp_get_hidden_status_id(); 976 975 } 977 976
Note: See TracChangeset
for help on using the changeset viewer.