WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#35522 closed defect (bug) (invalid)

Change wpdb query for get_option

Reported by: sebastian.pisula Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:
PR Number:

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 4 years ago.

Download all attachments as: .zip

Change History (3)

#1 @sebastian.pisula
4 years ago

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

#2 @johnbillion
4 years ago

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