Ticket #1499: functions.php.2.diff

File functions.php.2.diff, 564 bytes (added by markjaquith, 7 years ago)

Patch for WP 1.6 SVN

  • functions.php

     
    368368 
    369369// thx Alex Stapleton, http://alex.vort-x.net/blog/ 
    370370function add_option($name, $value = '', $description = '', $autoload = 'yes') { 
    371         global $wpdb; 
     371        global $wpdb, $cache_settings; 
     372 
     373        // Make sure the option doesn't already exist 
     374        if ( isset($cache_settings->$name) ) 
     375                return; 
     376 
    372377        $original = $value; 
    373378        if ( is_array($value) || is_object($value) ) 
    374379                $value = serialize($value);