Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

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