Changeset 6413
- Timestamp:
- 12/19/2007 06:05:21 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/link-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r6365 r6413 398 398 } 399 399 400 function get_search_feed_link($search_query = '', $feed = '') { 401 if ( empty($search_query) ) 402 $search = attribute_escape(get_search_query()); 403 else 404 $search = attribute_escape(stripslashes($search_query)); 405 406 if ( empty($feed) ) 407 $feed = get_default_feed(); 408 409 $link = get_option('home') . "?s=$search&feed=$feed"; 410 411 $link = apply_filters('search_feed_link', $link); 412 413 return $link; 414 } 415 416 function get_search_comments_feed_link($search_query = '', $feed = '') { 417 if ( empty($search_query) ) 418 $search = attribute_escape(get_search_query()); 419 else 420 $search = attribute_escape(stripslashes($search_query)); 421 422 if ( empty($feed) ) 423 $feed = get_default_feed(); 424 425 $link = get_option('home') . "?s=$search&feed=comments-$feed"; 426 427 $link = apply_filters('search_feed_link', $link); 428 429 return $link; 430 } 431 400 432 function get_edit_post_link( $id = 0 ) { 401 433 $post = &get_post( $id );
Note: See TracChangeset
for help on using the changeset viewer.