X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..ac7339a398e6df50f722bc9616291ce5447d8e5e:/wp-links-opml.php diff --git a/wp-links-opml.php b/wp-links-opml.php index dfa3a44e..b196f736 100644 --- a/wp-links-opml.php +++ b/wp-links-opml.php @@ -1,53 +1,80 @@ \n"; ?> - + +echo '\n"; +?> - Links for <?php echo attribute_escape(get_bloginfo('name', 'display').$cat_name); ?> + <?php printf( __('Links for %s'), esc_attr(get_bloginfo('name', 'display')) ); ?> GMT + 'link_category', 'hierarchical' => 0)); else - $cats = get_categories('type=link&hierarchical=0&include='.$link_cat); + $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat)); -foreach ((array) $cats as $cat) { - $catname = apply_filters('link_category', $cat->name); +foreach ( (array)$cats as $cat ) : + /** + * 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 ); ?> - + 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 ); ?> - +