#35522 closed defect (bug) (invalid)
Change wpdb query for get_option
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
I think that in wp-includes/functions.php:1362 should be
<?php $installed = get_option( 'siteurl' );
now is:
<?php if ( ! wp_installing() ) { $alloptions = wp_load_alloptions(); } // If siteurl is not set to autoload, check it specifically if ( !isset( $alloptions['siteurl'] ) ) $installed = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'" ); else $installed = $alloptions['siteurl'];
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.