Inline documentation for hooks in wp-includes/bookmark-template.php.

Props vinod dalvi, kpdesign.
Fixes #25364.

Built from https://develop.svn.wordpress.org/trunk@25533


git-svn-id: http://core.svn.wordpress.org/trunk@25453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2013-09-20 23:09:09 +00:00
parent fe5ee3c5b3
commit 9577cc4640
1 changed files with 16 additions and 1 deletions

View File

@ -228,7 +228,15 @@ function wp_list_bookmarks($args = '') {
if ( empty($bookmarks) )
continue;
$output .= str_replace(array('%id', '%class'), array("linkcat-$cat->term_id", $class), $category_before);
$catname = apply_filters( "link_category", $cat->name );
/**
* Filter the bookmarks category name.
*
* @since 2.2.0
*
* @param string $cat->name The category name of bookmarks.
*/
$catname = apply_filters( 'link_category', $cat->name );
$output .= "$title_before$catname$title_after\n\t<ul class='xoxo blogroll'>\n";
$output .= _walk_bookmarks($bookmarks, $r);
$output .= "\n\t</ul>\n$category_after\n";
@ -249,6 +257,13 @@ function wp_list_bookmarks($args = '') {
}
}
/**
* Filter the bookmarks list before it is echoed or returned.
*
* @since 2.5.0
*
* @param string $output The HTML list of bookmarks.
*/
$output = apply_filters( 'wp_list_bookmarks', $output );
if ( !$echo )