Changes in trunk/wp-links-opml.php [15928:13747]
- File:
-
- 1 edited
-
trunk/wp-links-opml.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-links-opml.php
r15928 r13747 13 13 */ 14 14 15 require_once('./wp-load.php'); 15 if ( empty($wp) ) { 16 require_once('./wp-load.php'); 17 wp(); 18 } 16 19 17 20 header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); … … 34 37 <?php 35 38 if ( empty($link_cat) ) 36 $cats = get_categories(array('t axonomy' => 'link_category', 'hierarchical' => 0));39 $cats = get_categories(array('type' => 'link', 'hierarchical' => 0)); 37 40 else 38 $cats = get_categories(array('t axonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat));41 $cats = get_categories(array('type' => 'link', 'hierarchical' => 0, 'include' => $link_cat)); 39 42 40 43 foreach ( (array)$cats as $cat ) :
Note: See TracChangeset
for help on using the changeset viewer.