X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..bf5c68485ef07868ad0a91168ecd0092af7661ae:/wp-links-opml.php?ds=sidebyside diff --git a/wp-links-opml.php b/wp-links-opml.php index 069d7a5f..e30869bd 100644 --- a/wp-links-opml.php +++ b/wp-links-opml.php @@ -12,10 +12,7 @@ * @package WordPress */ -if ( empty($wp) ) { - require_once('./wp-load.php'); - wp(); -} +require_once('./wp-load.php'); header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); $link_cat = ''; @@ -36,9 +33,9 @@ echo '\n"; 'link', 'hierarchical' => 0)); + $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0)); else - $cats = get_categories(array('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); @@ -59,4 +56,4 @@ foreach ( (array)$cats as $cat ) : endforeach; // $cats ?> - + \ No newline at end of file