Make WordPress Core

Changeset 3885


Ignore:
Timestamp:
06/17/2006 11:38:45 PM (19 years ago)
Author:
matt
Message:

Don't hide blog when option is blank!

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade-schema.php

    r3846 r3885  
    230230
    231231    // 2.1
    232     add_option('blog_public', 1);
     232    add_option('blog_public', '1');
    233233    add_option('default_link_category', 2);
    234234    add_option('show_on_front', 'posts');
  • trunk/wp-includes/functions.php

    r3862 r3885  
    976976
    977977function privacy_ping_filter( $sites ) {
    978     if ( get_option('blog_public') )
     978    if ( '0' != get_option('blog_public') )
    979979        return $sites;
    980980    else
     
    10271027
    10281028function do_robots() {
    1029     if ( '1' != get_option('blog_public') ) {
     1029    do_action('do_robots');
     1030    if ( '0' == get_option('blog_public') ) {
    10301031        echo "User-agent: *\n";
    10311032        echo "Disallow: /\n";
  • trunk/wp-includes/general-template.php

    r3878 r3885  
    695695
    696696function 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";
    698698}
    699699
    700700function noindex() {
    701701    // 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";
    704704}
    705705
Note: See TracChangeset for help on using the changeset viewer.