Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-links-opml.php

    r15928 r13747  
    1313 */
    1414
    15 require_once('./wp-load.php');
     15if ( empty($wp) ) {
     16    require_once('./wp-load.php');
     17    wp();
     18}
    1619
    1720header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
     
    3437<?php
    3538if ( empty($link_cat) )
    36     $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0));
     39    $cats = get_categories(array('type' => 'link', 'hierarchical' => 0));
    3740else
    38     $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat));
     41    $cats = get_categories(array('type' => 'link', 'hierarchical' => 0, 'include' => $link_cat));
    3942
    4043foreach ( (array)$cats as $cat ) :
Note: See TracChangeset for help on using the changeset viewer.