Changeset 1109
- Timestamp:
- 04/20/2004 11:03:09 PM (21 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r1108 r1109 413 413 function get_catname($cat_ID) { 414 414 global $tablecategories, $cache_catnames, $wpdb; 415 if ( !$cache_catnames )) {415 if ( !$cache_catnames ) { 416 416 $results = $wpdb->get_results("SELECT * FROM $tablecategories") or die('Oops, couldn\'t query the db for categories.'); 417 417 foreach ($results as $post) { -
trunk/wp-includes/template-functions-category.php
r1108 r1109 114 114 function get_the_category_by_ID($cat_ID) { 115 115 global $tablecategories, $cache_categories, $wpdb; 116 if ( !$cache_categories[$cat_ID] )) {116 if ( !$cache_categories[$cat_ID] ) { 117 117 $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'"); 118 118 $cache_categories[$cat_ID]->cat_name = $cat_name; … … 331 331 $link .= '<a href="' . get_category_rss_link(0, $category->cat_ID, $category->category_nicename) . '"'; 332 332 333 if ( ! empty($feed)) {333 if ( !empty($feed) ) { 334 334 $title = ' title="' . stripslashes($feed) . '"'; 335 335 $alt = ' alt="' . stripslashes($feed) . '"';
Note: See TracChangeset
for help on using the changeset viewer.