Make WordPress Core


Ignore:
Timestamp:
08/26/2009 10:46:33 PM (15 years ago)
Author:
ryan
Message:

Make option_name the primary key for the options table. Props Denis-de-Bernardy. fixes #2699

File:
1 edited

Legend:

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

    r11878 r11883  
    622622    // Get the ID, if no ID then return
    623623    // expected_slashed ($name)
    624     $option = $wpdb->get_row( "SELECT option_id, autoload FROM $wpdb->options WHERE option_name = '$name'" );
    625     if ( is_null($option) || !$option->option_id )
     624    $option = $wpdb->get_row( "SELECT autoload FROM $wpdb->options WHERE option_name = '$name'" );
     625    if ( is_null($option) )
    626626        return false;
    627627    // expected_slashed ($name)
Note: See TracChangeset for help on using the changeset viewer.