Make WordPress Core

Changeset 17988


Ignore:
Timestamp:
05/22/2011 10:19:36 PM (13 years ago)
Author:
nacin
Message:

Single quotes and spaces in ms-blogs.php. props niallkennedy, fixes #17522.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-blogs.php

    r17005 r17988  
    7272function get_blogaddress_by_domain( $domain, $path ) {
    7373    if ( is_subdomain_install() ) {
    74         $url = "http://".$domain.$path;
     74        $url = "http://" . $domain.$path;
    7575    } else {
    7676        if ( $domain != $_SERVER['HTTP_HOST'] ) {
     
    9797function get_id_from_blogname( $name ) {
    9898    global $wpdb, $current_site;
    99     $blog_id = wp_cache_get( "get_id_from_blogname_" . $name, 'blog-details' );
     99    $blog_id = wp_cache_get( 'get_id_from_blogname_' . $name, 'blog-details' );
    100100    if ( $blog_id )
    101101        return $blog_id;
     
    332332    global $wpdb;
    333333
    334     $key = $blog_id."-".$setting."-blog_option";
    335     $value = wp_cache_get( $key, "site-options" );
     334    $key = $blog_id . '-' . $setting . '-blog_option';
     335    $value = wp_cache_get( $key, 'site-options' );
    336336    if ( $value == null ) {
    337337        if ( $blog_id == $wpdb->blogid ) {
     
    391391    add_option( $key, $value );
    392392    restore_current_blog();
    393     wp_cache_set( $id."-".$key."-blog_option", $value, 'site-options' );
     393    wp_cache_set( $id . '-' . $key . '-blog_option', $value, 'site-options' );
    394394}
    395395
     
    408408    delete_option( $key );
    409409    restore_current_blog();
    410     wp_cache_set( $id."-".$key."-blog_option", '', 'site-options' );
     410    wp_cache_set( $id . '-' . $key . '-blog_option', '', 'site-options' );
    411411}
    412412
     
    432432    refresh_blog_details( $id );
    433433
    434     wp_cache_set( $id."-".$key."-blog_option", $value, 'site-options');
     434    wp_cache_set( $id . '-' . $key . '-blog_option', $value, 'site-options');
    435435}
    436436
Note: See TracChangeset for help on using the changeset viewer.