mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user