Changeset 3165
- Timestamp:
- 05/15/2011 11:48:23 PM (14 years ago)
- Location:
- branches/plugin/bbp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/plugin/bbp-includes/bbp-forum-functions.php ¶
r3157 r3165 750 750 $forum_ids = get_option( '_bbp_hidden_forums', array() ); 751 751 752 return apply_filters( 'bbp_get_hidden_forum_ids', array_filter( (array) $forum_ids ));752 return apply_filters( 'bbp_get_hidden_forum_ids', (array) $forum_ids ); 753 753 } 754 754 … … 767 767 $forum_ids = get_option( '_bbp_private_forums', array() ); 768 768 769 return apply_filters( 'bbp_get_private_forum_ids', array_filter( (array) $forum_ids ));769 return apply_filters( 'bbp_get_private_forum_ids', (array) $forum_ids ); 770 770 } 771 771 … … 781 781 function bbp_exclude_forum_ids( $query = array() ) { 782 782 783 // Show hidden topicsfor super admins784 if ( is_super_admin() || bbp_is_user_home())783 // Do not exclude for super admins 784 if ( is_super_admin() ) 785 785 return $query; 786 786 … … 797 797 798 798 // Merge private and hidden forums together 799 $forum_ids = array_filter( array_merge( $private, $hidden ) );799 $forum_ids = (array) array_filter( array_merge( $private, $hidden ) ); 800 800 801 801 // There are forums that need to be excluded -
TabularUnified branches/plugin/bbp-includes/bbp-user-template.php ¶
r3159 r3165 1113 1113 $hidden = bbp_get_hidden_forum_ids(); 1114 1114 1115 // Merge private and hidden forums together 1116 $forum_ids = array_merge( $private, $hidden);1115 // Merge private and hidden forums together and remove any empties 1116 $forum_ids = (array) array_filter( array_merge( $private, $hidden ) ); 1117 1117 1118 1118 // There are forums that need to be ex
Note: See TracChangeset
for help on using the changeset viewer.