-
- $bookmarks = get_bookmarks("category={$cat->term_id}");
- foreach ((array) $bookmarks as $bookmark) {
- $title = attribute_escape(apply_filters('link_title', $bookmark->link_name));
+ $bookmarks = get_bookmarks(array("category" => $cat->term_id));
+ foreach ( (array)$bookmarks as $bookmark ) :
+ /**
+ * Filter the OPML outline link title text.
+ *
+ * @since 2.2.0
+ *
+ * @param string $title The OPML outline title text.
+ */
+ $title = apply_filters( 'link_title', $bookmark->link_name );