A few typos.

git-svn-id: https://develop.svn.wordpress.org/trunk@1109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-04-20 23:03:09 +00:00
parent 94f0cf9181
commit 83fc5c942e
2 changed files with 3 additions and 3 deletions

View File

@ -412,7 +412,7 @@ function get_commentdata($comment_ID,$no_cache=0,$include_unapproved=false) { //
function get_catname($cat_ID) {
global $tablecategories, $cache_catnames, $wpdb;
if ( !$cache_catnames) ) {
if ( !$cache_catnames ) {
$results = $wpdb->get_results("SELECT * FROM $tablecategories") or die('Oops, couldn\'t query the db for categories.');
foreach ($results as $post) {
$cache_catnames[$post->cat_ID] = $post->cat_name;

View File

@ -113,7 +113,7 @@ function the_category_rss($type = 'rss') {
function get_the_category_by_ID($cat_ID) {
global $tablecategories, $cache_categories, $wpdb;
if ( !$cache_categories[$cat_ID]) ) {
if ( !$cache_categories[$cat_ID] ) {
$cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
$cache_categories[$cat_ID]->cat_name = $cat_name;
} else {
@ -330,7 +330,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
$link .= '<a href="' . get_category_rss_link(0, $category->cat_ID, $category->category_nicename) . '"';
if (! empty($feed)) {
if ( !empty($feed) ) {
$title = ' title="' . stripslashes($feed) . '"';
$alt = ' alt="' . stripslashes($feed) . '"';
$name = stripslashes($feed);