Deprecate permalink_single_rss(). Add the_permalink_rss() with accompanying filter. Props joostdevalk and Otto42. fixes #4654

git-svn-id: https://develop.svn.wordpress.org/trunk@5910 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-08-21 18:27:45 +00:00
parent 349e0bb2d4
commit 6f03cac3d9
9 changed files with 78 additions and 74 deletions
+8 -3
View File
@@ -236,7 +236,7 @@ function wp_get_linksbyname($category, $args = '') {
$cat = get_term_by('name', $cat_name, 'link_category');
if ( !$cat )
return false;
$cat_id = $cat->term_id;
$cat_id = $cat->term_id;
$args = add_query_arg('category', $cat_id, $args);
wp_get_links($args);
@@ -266,7 +266,7 @@ function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit
$cat_id = -1;
$cat = get_term_by('name', $cat_name, 'link_category');
if ( $cat )
$cat_id = $cat->term_id;
$cat_id = $cat->term_id;
return get_linkobjects($cat_id, $orderby, $limit);
}
@@ -314,7 +314,7 @@ function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
$links_array = array();
foreach ($links as $link) {
$links_array[] = $link;
$links_array[] = $link;
}
return $links_array;
@@ -484,4 +484,9 @@ function permalink_link() {
the_permalink();
}
// Use the_permalink_rss()
function permalink_single_rss($file = '') {
the_permalink_rss();
}
?>