WordPress.org

Make WordPress Core

Ticket #15497: 15497.diff

File 15497.diff, 729 bytes (added by duck_, 5 years ago)
  • wp-includes/functions.php

     
    37183718        } else { 
    37193719                $cache_key = "{$wpdb->siteid}:$option"; 
    37203720 
    3721                 if ( $value && !$wpdb->get_row( $wpdb->prepare( "SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) ) ) 
     3721                if ( !$wpdb->get_row( $wpdb->prepare( "SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) ) ) 
    37223722                        return add_site_option( $option, $value ); 
    37233723                $value = sanitize_option( $option, $value ); 
    37243724                wp_cache_set( $cache_key, $value, 'site-options' );