Changeset 10958
- Timestamp:
- 04/16/2009 10:00:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r10955 r10958 1680 1680 1681 1681 $suppress = $wpdb->suppress_errors(); 1682 $installed = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'" ); 1682 $alloptions = wp_load_alloptions(); 1683 // If siteurl is not set to autoload, but other options are loaded, check if it's there 1684 if ( !isset($alloptions['siteurl']) && count($alloptions) > 1 ) 1685 $installed = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'" ); 1686 else 1687 $installed = $alloptions['siteurl']; 1683 1688 $wpdb->suppress_errors($suppress); 1684 1689
Note: See TracChangeset
for help on using the changeset viewer.