]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-links-opml.php
WordPress 3.5.1-scripts
[autoinstalls/wordpress.git] / wp-links-opml.php
index 069d7a5ff4222c51bbabe9b131e489ab7c2cdf53..e30869bdc836074d4b07c03508f3d0c70745342d 100644 (file)
  * @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 '<?xml version="1.0"?'.">\n";
        <body>
 <?php
 if ( empty($link_cat) )
-       $cats = get_categories(array('type' => '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
 ?>
 </body>
-</opml>
+</opml>
\ No newline at end of file