Changeset 23794 for trunk/wp-includes/general-template.php
- Timestamp:
- 03/25/2013 09:29:58 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r23709 r23794 1704 1704 */ 1705 1705 function noindex() { 1706 $public = get_option( 'blog_public' ); 1707 1708 if ( is_multisite() ) { 1709 // Compare local and global and override with the local setting if they 1710 // don't match. 1711 1712 global $current_blog; 1713 1714 if ( ( '' != $public ) && ( $public != $current_blog->public ) ) { 1715 update_blog_status( get_current_blog_id(), 'public', $public ); 1716 $current_blog->public = $public; 1717 } 1718 } 1719 1706 1720 // If the blog is not public, tell robots to go away. 1707 if ( '0' == get_option('blog_public'))1721 if ( '0' == $public ) 1708 1722 wp_no_robots(); 1709 1723 }
Note: See TracChangeset
for help on using the changeset viewer.