Changeset 10974
- Timestamp:
- 04/17/2009 01:43:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r10972 r10974 1676 1676 1677 1677 // Check cache first. If options table goes away and we have true cached, oh well. 1678 if ( wp_cache_get( 'is_blog_installed') )1678 if ( wp_cache_get( 'is_blog_installed' ) ) 1679 1679 return true; 1680 1680 1681 1681 $suppress = $wpdb->suppress_errors(); 1682 1682 $alloptions = wp_load_alloptions(); 1683 // If siteurl is not set to autoload, but other options are loaded, check if it's there1684 if ( !isset( $alloptions['siteurl']) && count($alloptions) > 1)1683 // If siteurl is not set to autoload, check it specifically 1684 if ( !isset( $alloptions['siteurl'] ) ) 1685 1685 $installed = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'" ); 1686 1686 else 1687 1687 $installed = $alloptions['siteurl']; 1688 $wpdb->suppress_errors( $suppress);1689 1690 $installed = !empty( $installed ) ? true : false;1691 wp_cache_set( 'is_blog_installed', $installed);1688 $wpdb->suppress_errors( $suppress ); 1689 1690 $installed = !empty( $installed ); 1691 wp_cache_set( 'is_blog_installed', $installed ); 1692 1692 1693 1693 return $installed;
Note: See TracChangeset
for help on using the changeset viewer.