Make WordPress Core


Ignore:
Timestamp:
08/09/2004 07:54:23 AM (21 years ago)
Author:
saxmatt
Message:

Don't need the 1=1

File:
1 edited

Legend:

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

    r1517 r1523  
    323323            if ('home' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
    324324            if ('category_base' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
    325         if (@ $value =  unserialize($option->option_value) ) return $value;
     325        if (@ $value =  unserialize($option->option_value) )
     326            $all_options->{$option->option_name} = $value;
    326327        else $value = $option->option_value;
    327328            $all_options->{$option->option_name} = $value;
     
    15101511function update_category_cache() {
    15111512    global $cache_categories, $wpdb;
    1512     $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1");
     1513    $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories");
    15131514    foreach ($dogs as $catt) {
    15141515        $cache_categories[$catt->cat_ID] = $catt;
Note: See TracChangeset for help on using the changeset viewer.