diff --git a/src/wp-includes/bookmark-template.php b/src/wp-includes/bookmark-template.php index cb30b896a9..64e73a88d0 100644 --- a/src/wp-includes/bookmark-template.php +++ b/src/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