WordPress.org

Make WordPress Core

Changeset 14892


Ignore:
Timestamp:
05/25/10 16:57:32 (4 years ago)
Author:
donncha
Message:

Cast "public" as an int to ensure it gets set correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r14872 r14892  
    834834 
    835835    add_option( 'WPLANG', get_site_option( 'WPLANG' ) ); 
    836     update_option( 'blog_public', $meta['public'] ); 
     836    update_option( 'blog_public', (int)$meta['public'] ); 
    837837 
    838838    if ( !is_super_admin() && get_user_meta( $user_id, 'primary_blog', true ) == get_site_option( 'dashboard_blog', 1 ) ) 
Note: See TracChangeset for help on using the changeset viewer.