Changeset 24559
- Timestamp:
- 07/05/2013 03:17:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r24524 r24559 1735 1735 */ 1736 1736 function noindex() { 1737 $public = get_option( 'blog_public' );1738 1739 if ( is_multisite() ) {1740 // Compare local and global and override with the local setting if they1741 // don't match.1742 1743 global $current_blog;1744 1745 if ( ( '' != $public ) && ( $public != $current_blog->public ) ) {1746 update_blog_status( get_current_blog_id(), 'public', $public );1747 $current_blog->public = $public;1748 }1749 }1750 1751 1737 // If the blog is not public, tell robots to go away. 1752 if ( '0' == $public)1738 if ( '0' == get_option('blog_public') ) 1753 1739 wp_no_robots(); 1754 1740 }
Note: See TracChangeset
for help on using the changeset viewer.