Changeset 6726 for trunk/wp-includes/link-template.php
- Timestamp:
- 02/05/2008 06:47:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r6711 r6726 341 341 function get_category_feed_link($cat_id, $feed = '') { 342 342 $cat_id = (int) $cat_id; 343 343 344 344 $category = get_category($cat_id); 345 345 346 346 if ( empty($category) || is_wp_error($category) ) 347 347 return false; … … 360 360 else 361 361 $feed_link = "feed/$feed"; 362 362 363 363 $link = trailingslashit($link) . user_trailingslashit($feed_link, 'feed'); 364 364 } 365 365 366 366 $link = apply_filters('category_feed_link', $link, $feed); 367 367 368 368 return $link; 369 369 } … … 403 403 else 404 404 $search = attribute_escape(stripslashes($search_query)); 405 405 406 406 if ( empty($feed) ) 407 407 $feed = get_default_feed(); 408 408 409 409 $link = get_option('home') . "?s=$search&feed=$feed"; 410 410 411 411 $link = apply_filters('search_feed_link', $link); 412 412 413 413 return $link; 414 414 } … … 419 419 else 420 420 $search = attribute_escape(stripslashes($search_query)); 421 421 422 422 if ( empty($feed) ) 423 423 $feed = get_default_feed(); 424 424 425 425 $link = get_option('home') . "?s=$search&feed=comments-$feed"; 426 426 427 427 $link = apply_filters('search_feed_link', $link); 428 428 429 429 return $link; 430 430 }
Note: See TracChangeset
for help on using the changeset viewer.