Make WordPress Core


Ignore:
Timestamp:
03/25/2004 07:21:00 AM (20 years ago)
Author:
saxmatt
Message:

Recache options when updating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1007 r1009  
    344344
    345345function update_option($option_name, $newvalue) {
    346     global $wpdb, $tableoptions;
     346    global $wpdb, $tableoptions, $cache_settings;
    347347    // No validation at the moment
    348348    $wpdb->query("UPDATE $tableoptions SET option_value = '$newvalue' WHERE option_name = '$option_name'");
     349    $cache_settings = get_alloptions(); // Re cache settings
     350    return true;
    349351}
    350352
Note: See TracChangeset for help on using the changeset viewer.