Changeset 5355
- Timestamp:
- 11/24/2011 03:08:26 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r5337 r5355 161 161 $user_id = (int)$post->post_author; 162 162 163 // This is to stop infinite loops with Donncha's sitewide tags plugin 164 if ( !empty( $bp->site_options['tags_blog_id'] ) && (int)$blog_id == (int)$bp->site_options['tags_blog_id'] ) 163 // Stop infinite loops with WordPress MU Sitewide Tags. 164 // That plugin changed the way its settings were stored at some point. Thus the dual check. 165 if ( !empty( $bp->site_options['sitewide_tags_blog'] ) ) { 166 $st_options = maybe_unserialize( $bp->site_options['sitewide_tags_blog'] ); 167 $tags_blog_id = isset( $st_options['tags_blog_id'] ) ? $st_options['tags_blog_id'] : 0; 168 } else { 169 $tags_blog_id = isset( $bp->site_options['tags_blog_id'] ) ? $bp->site_options['tags_blog_id'] : 0; 170 } 171 172 if ( (int)$blog_id == $tags_blog_id && apply_filters( 'bp_blogs_block_sitewide_tags_activity', true ) ) 165 173 return false; 166 174 … … 306 314 return false; 307 315 } 308 309 310 316 311 317 if ( $role != 'subscriber' ) -
trunk/bp-core/bp-core-functions.php
r5352 r5355 1063 1063 if ( is_multisite() ) { 1064 1064 $network_options = apply_filters( 'bp_core_network_options', array( 1065 'tags_blog_id' => '0', 1066 'registration' => '0', 1067 'fileupload_maxk' => '1500' 1065 'tags_blog_id' => '0', 1066 'sitewide_tags_blog' => '', 1067 'registration' => '0', 1068 'fileupload_maxk' => '1500' 1068 1069 ) ); 1069 1070
Note: See TracChangeset
for help on using the changeset viewer.