Changeset 10016
- Timestamp:
- 07/15/2015 09:35:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r10012 r10016 1760 1760 1761 1761 // Use current blog if no ID is passed 1762 if ( empty( $blog_id ) ) {1762 if ( empty( $blog_id ) || ! is_int( $blog_id ) ) { 1763 1763 $blog_id = get_current_blog_id(); 1764 1764 } 1765 1765 1766 1766 // Compare to root blog ID 1767 if ( $blog_id == bp_get_root_blog_id()) {1767 if ( bp_get_root_blog_id() === $blog_id ) { 1768 1768 $is_root_blog = true; 1769 1769 }
Note: See TracChangeset
for help on using the changeset viewer.