X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..a349837896628462bf8c9bdc27d1477a10fe03eb:/wp-links-opml.php diff --git a/wp-links-opml.php b/wp-links-opml.php index e30869bd..b196f736 100644 --- a/wp-links-opml.php +++ b/wp-links-opml.php @@ -12,7 +12,7 @@ * @package WordPress */ -require_once('./wp-load.php'); +require_once( dirname( __FILE__ ) . '/wp-load.php' ); header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); $link_cat = ''; @@ -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 ); ?> - \ No newline at end of file +