Changeset 12515 for trunk/wp-links-opml.php
- Timestamp:
- 12/23/2009 03:31:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-links-opml.php
r11204 r12515 37 37 38 38 if (empty ($link_cat)) 39 $cats = get_categories( "type=link&hierarchical=0");39 $cats = get_categories(array('type' => 'link', 'hierarchical' => 0)); 40 40 else 41 $cats = get_categories( 'type=link&hierarchical=0&include='.$link_cat);41 $cats = get_categories(array('type' => 'link', 'hierarchical' => 0, 'include' => $link_cat)); 42 42 43 43 foreach ((array) $cats as $cat) { … … 48 48 <?php 49 49 50 $bookmarks = get_bookmarks( "category={$cat->term_id}");50 $bookmarks = get_bookmarks(array("category" => $cat->term_id)); 51 51 foreach ((array) $bookmarks as $bookmark) { 52 52 $title = esc_attr(apply_filters('link_title', $bookmark->link_name));
Note: See TracChangeset
for help on using the changeset viewer.