Changeset 643 for trunk/wp-includes/template-functions.php
- Timestamp:
- 12/23/2003 08:51:04 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions.php
r640 r643 1227 1227 global $post, $tablecategories, $tablepost2cat, $wpdb; 1228 1228 $categories = $wpdb->get_results(" 1229 SELECT category_id, cat_name, category_nicename 1229 SELECT category_id, cat_name, category_nicename, category_description 1230 1230 FROM $tablecategories, $tablepost2cat 1231 1231 WHERE $tablepost2cat.category_id = cat_ID AND $tablepost2cat.post_id = $post->ID … … 1322 1322 $previouscat = $currentcat; 1323 1323 } 1324 } 1325 1326 function category_description($category = 0) { 1327 global $cat, $wpdb, $tablecategories; 1328 if (!$category) $category = $cat; 1329 $category_description = $wpdb->get_var("SELECT category_description FROM $tablecategories WHERE cat_ID = $category"); 1330 $category_description = apply_filters('category_description', $category_description); 1331 return $category_description; 1324 1332 } 1325 1333
Note: See TracChangeset
for help on using the changeset viewer.