WordPress.org

Make WordPress Core

Ticket #18422: 18422.add-shouldnt-update.diff

File 18422.add-shouldnt-update.diff, 581 bytes (added by duck_, 4 years ago)
  • wp-includes/functions.php

     
    37993799                $cache_key = "{$wpdb->siteid}:$option"; 
    38003800 
    38013801                if ( $wpdb->get_row( $wpdb->prepare( "SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) ) ) 
    3802                         return update_site_option( $option, $value ); 
     3802                        return false; 
    38033803 
    38043804                $value = sanitize_option( $option, $value ); 
    38053805                wp_cache_set( $cache_key, $value, 'site-options' );