From b9d8d2e9fd1be74876937ed16711cb42f6f4d111 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 17 Jun 2006 23:38:45 +0000 Subject: [PATCH] Don't hide blog when option is blank! git-svn-id: http://svn.automattic.com/wordpress/trunk@3885 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-privacy.php | 72 ++++++++++++++++---------------- wp-admin/upgrade-schema.php | 2 +- wp-includes/functions.php | 5 ++- wp-includes/general-template.php | 6 +-- 4 files changed, 43 insertions(+), 42 deletions(-) diff --git a/wp-admin/options-privacy.php b/wp-admin/options-privacy.php index 17d0364ec..eb974a483 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 f20047aaa..777dd9d6a 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 6bbedf96c..fc131464f 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 31111f95e..43a3ec37d 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"; } /**