Don't need the 1=1

git-svn-id: https://develop.svn.wordpress.org/trunk@1523 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-08-09 07:54:23 +00:00
parent 82e38938fa
commit a71c9d98f2
1 changed files with 3 additions and 2 deletions

View File

@ -322,7 +322,8 @@ function get_alloptions() {
if ('siteurl' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value); if ('siteurl' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
if ('home' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value); if ('home' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
if ('category_base' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value); if ('category_base' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
if (@ $value = unserialize($option->option_value) ) return $value; if (@ $value = unserialize($option->option_value) )
$all_options->{$option->option_name} = $value;
else $value = $option->option_value; else $value = $option->option_value;
$all_options->{$option->option_name} = $value; $all_options->{$option->option_name} = $value;
} }
@ -1509,7 +1510,7 @@ function update_post_caches($posts) {
function update_category_cache() { function update_category_cache() {
global $cache_categories, $wpdb; global $cache_categories, $wpdb;
$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1"); $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories");
foreach ($dogs as $catt) { foreach ($dogs as $catt) {
$cache_categories[$catt->cat_ID] = $catt; $cache_categories[$catt->cat_ID] = $catt;
} }