From a0488fb60905d9e2394def356df3127b5129f102 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 18 Sep 2013 17:30:23 +0000 Subject: [PATCH] Inline documentation for hooks in wp-links-opml.php. props netweb. see #25229. git-svn-id: https://develop.svn.wordpress.org/trunk@25480 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-links-opml.php | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/wp-links-opml.php b/src/wp-links-opml.php index e30869bdc8..8460ee1eb8 100644 --- a/src/wp-links-opml.php +++ b/src/wp-links-opml.php @@ -28,7 +28,14 @@ echo '\n"; <?php printf( __('Links for %s'), esc_attr(get_bloginfo('name', 'display')) ); ?> GMT - + 'link_category', 'hierarchical' => 0, 'include' => $link_cat)); foreach ( (array)$cats as $cat ) : - $catname = apply_filters('link_category', $cat->name); + /** + * Filter the OPML outline link category name. + * + * @since 2.2.0 + * + * @param string $catname The OPML outline category name. + */ + $catname = apply_filters( 'link_category', $cat->name ); ?> $cat->term_id)); foreach ( (array)$bookmarks as $bookmark ) : - $title = apply_filters('link_title', $bookmark->link_name); + /** + * 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 ); ?>