Changeset 643
- Timestamp:
- 12/23/2003 08:51:04 PM (22 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
wp-blog-header.php (modified) (1 diff)
-
wp-includes/template-functions.php (modified) (2 diffs)
-
wp-includes/vars.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-blog-header.php
r628 r643 170 170 $join = " LEFT JOIN $tablepost2cat ON ($tableposts.ID = $tablepost2cat.post_id) LEFT JOIN $tablecategories ON ($tablepost2cat.category_id = $tablecategories.cat_ID) "; 171 171 $whichcat = " AND (category_nicename = '$category_name') "; 172 $cat = $wpdb->get_var("SELECT cat_ID FROM $tablecategories WHERE category_nicename = '$category_name'"); 172 173 } 173 174 -
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 -
trunk/wp-includes/vars.php
r629 r643 270 270 } 271 271 272 273 // Some default filters 272 274 add_filter('all', 'wptexturize'); 273 275 add_filter('the_content', 'wpautop'); 274 276 add_filter('comment_text', 'wpautop'); 277 275 278 // Uncomment the following for Textile support 276 279 // include_once('textile.php');
Note: See TracChangeset
for help on using the changeset viewer.