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:
parent
fe5ee3c5b3
commit
9577cc4640
|
@ -228,7 +228,15 @@ function wp_list_bookmarks($args = '') {
|
||||||
if ( empty($bookmarks) )
|
if ( empty($bookmarks) )
|
||||||
continue;
|
continue;
|
||||||
$output .= str_replace(array('%id', '%class'), array("linkcat-$cat->term_id", $class), $category_before);
|
$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 .= "$title_before$catname$title_after\n\t<ul class='xoxo blogroll'>\n";
|
||||||
$output .= _walk_bookmarks($bookmarks, $r);
|
$output .= _walk_bookmarks($bookmarks, $r);
|
||||||
$output .= "\n\t</ul>\n$category_after\n";
|
$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 );
|
$output = apply_filters( 'wp_list_bookmarks', $output );
|
||||||
|
|
||||||
if ( !$echo )
|
if ( !$echo )
|
||||||
|
|
Loading…
Reference in New Issue