X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..72836ec95a52eacbda4dc5aa296b7dd6de08bd3b:/wp-includes/bookmark-template.php diff --git a/wp-includes/bookmark-template.php b/wp-includes/bookmark-template.php index cb30b896..64e73a88 100644 --- a/wp-includes/bookmark-template.php +++ b/wp-includes/bookmark-template.php @@ -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\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 )