Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#35522 closed defect (bug) (invalid)

Change wpdb query for get_option

Reported by: sebastianpisula's profile sebastian.pisula 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)

35522.patch (873 bytes) - added by sebastian.pisula 9 years ago.

Download all attachments as: .zip

Change History (3)

#1 @sebastian.pisula
9 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#2 @johnbillion
9 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.