Changeset 3885
- Timestamp:
- 06/17/2006 11:38:45 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upgrade-schema.php
r3846 r3885 230 230 231 231 // 2.1 232 add_option('blog_public', 1);232 add_option('blog_public', '1'); 233 233 add_option('default_link_category', 2); 234 234 add_option('show_on_front', 'posts'); -
trunk/wp-includes/functions.php
r3862 r3885 976 976 977 977 function privacy_ping_filter( $sites ) { 978 if ( get_option('blog_public') )978 if ( '0' != get_option('blog_public') ) 979 979 return $sites; 980 980 else … … 1027 1027 1028 1028 function do_robots() { 1029 if ( '1' != get_option('blog_public') ) { 1029 do_action('do_robots'); 1030 if ( '0' == get_option('blog_public') ) { 1030 1031 echo "User-agent: *\n"; 1031 1032 echo "Disallow: /\n"; -
trunk/wp-includes/general-template.php
r3878 r3885 695 695 696 696 function rsd_link() { 697 echo ' <link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";697 echo ' <link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n"; 698 698 } 699 699 700 700 function noindex() { 701 701 // If the blog is not public, tell robots to go away. 702 if ( !get_option('blog_public') )703 echo '<meta name="robots" content="noindex,nofollow" />' . "\n";702 if ( '0' == get_option('blog_public') ) 703 echo "<meta name='robots' content='noindex,nofollow' />\n"; 704 704 } 705 705
Note: See TracChangeset
for help on using the changeset viewer.