Don't hide blog when option is blank!
git-svn-id: http://svn.automattic.com/wordpress/trunk@3885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1f07084f77
commit
b9d8d2e9fd
|
@ -229,7 +229,7 @@ function populate_options() {
|
||||||
add_option('secret', md5(uniqid(microtime())));
|
add_option('secret', md5(uniqid(microtime())));
|
||||||
|
|
||||||
// 2.1
|
// 2.1
|
||||||
add_option('blog_public', 1);
|
add_option('blog_public', '1');
|
||||||
add_option('default_link_category', 2);
|
add_option('default_link_category', 2);
|
||||||
add_option('show_on_front', 'posts');
|
add_option('show_on_front', 'posts');
|
||||||
|
|
||||||
|
|
|
@ -975,7 +975,7 @@ function get_num_queries() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function privacy_ping_filter( $sites ) {
|
function privacy_ping_filter( $sites ) {
|
||||||
if ( get_option('blog_public') )
|
if ( '0' != get_option('blog_public') )
|
||||||
return $sites;
|
return $sites;
|
||||||
else
|
else
|
||||||
return '';
|
return '';
|
||||||
|
@ -1026,7 +1026,8 @@ function do_feed_atom() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function do_robots() {
|
function do_robots() {
|
||||||
if ( '1' != get_option('blog_public') ) {
|
do_action('do_robots');
|
||||||
|
if ( '0' == get_option('blog_public') ) {
|
||||||
echo "User-agent: *\n";
|
echo "User-agent: *\n";
|
||||||
echo "Disallow: /\n";
|
echo "Disallow: /\n";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -694,13 +694,13 @@ function wp_footer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function rsd_link() {
|
function rsd_link() {
|
||||||
echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
|
echo ' <link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function noindex() {
|
function noindex() {
|
||||||
// If the blog is not public, tell robots to go away.
|
// If the blog is not public, tell robots to go away.
|
||||||
if ( ! get_option('blog_public') )
|
if ( '0' == get_option('blog_public') )
|
||||||
echo '<meta name="robots" content="noindex,nofollow" />' . "\n";
|
echo "<meta name='robots' content='noindex,nofollow' />\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue