Make WordPress Core

Ticket #2332: update_option.diff

File update_option.diff, 574 bytes (added by skeltoac, 16 years ago)

Use double quotes.

  • wp-includes/functions.php

     
    373373        $option_name = $wpdb->escape($option_name);
    374374        $wpdb->query("UPDATE $wpdb->options SET option_value = '$newvalue' WHERE option_name = '$option_name'");
    375375        if ( $wpdb->rows_affected == 1 ) {
    376                 do_action('update_option_{$option_name}', $oldvalue, $newvalue);
     376                do_action("update_option_{$option_name}", $oldvalue, $newvalue);
    377377                return true;
    378378        }
    379379        return false;