diff --git a/wp-admin/options-privacy.php b/wp-admin/options-privacy.php index 17d0364ece..eb974a4830 100644 --- a/wp-admin/options-privacy.php +++ b/wp-admin/options-privacy.php @@ -1,36 +1,36 @@ - - -
-

-
- - - - - - -
- /> - -
- /> - - -
- -

- - -

-
- -
- - + + +
+

+
+ + + + + + +
+ /> + +
+ /> + + +
+ +

+ + +

+
+ +
+ + diff --git a/wp-admin/upgrade-schema.php b/wp-admin/upgrade-schema.php index f20047aaab..777dd9d6a3 100644 --- a/wp-admin/upgrade-schema.php +++ b/wp-admin/upgrade-schema.php @@ -229,7 +229,7 @@ function populate_options() { add_option('secret', md5(uniqid(microtime()))); // 2.1 - add_option('blog_public', 1); + add_option('blog_public', '1'); add_option('default_link_category', 2); add_option('show_on_front', 'posts'); diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 6bbedf96c5..fc131464f7 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -975,7 +975,7 @@ function get_num_queries() { } function privacy_ping_filter( $sites ) { - if ( get_option('blog_public') ) + if ( '0' != get_option('blog_public') ) return $sites; else return ''; @@ -1026,7 +1026,8 @@ function do_feed_atom() { } function do_robots() { - if ( '1' != get_option('blog_public') ) { + do_action('do_robots'); + if ( '0' == get_option('blog_public') ) { echo "User-agent: *\n"; echo "Disallow: /\n"; } else { diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 31111f95ed..43a3ec37d8 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -694,13 +694,13 @@ function wp_footer() { } function rsd_link() { - echo '\n"; + echo ' \n"; } function noindex() { // If the blog is not public, tell robots to go away. - if ( ! get_option('blog_public') ) - echo '' . "\n"; + if ( '0' == get_option('blog_public') ) + echo "\n"; } /**