Make WordPress Core

Ticket #35522: 35522.patch

File 35522.patch, 873 bytes (added by sebastian.pisula, 9 years ago)
  • wp-includes/functions.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    13591359                return true;
    13601360
    13611361        $suppress = $wpdb->suppress_errors();
    1362         if ( ! wp_installing() ) {
    1363                 $alloptions = wp_load_alloptions();
    1364         }
     1362
    13651363        // If siteurl is not set to autoload, check it specifically
    1366         if ( !isset( $alloptions['siteurl'] ) )
    1367                 $installed = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'" );
    1368         else
    1369                 $installed = $alloptions['siteurl'];
     1364        $installed = get_option( 'siteurl' );
     1365
    13701366        $wpdb->suppress_errors( $suppress );
    13711367
    13721368        $installed = !empty( $installed );