Make WordPress Core


Ignore:
Timestamp:
12/23/2009 03:31:02 PM (14 years ago)
Author:
ryan
Message:

Use array calling style. Props Denis-de-Bernardy. see #6647

File:
1 edited

Legend:

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

    r11204 r12515  
    3737
    3838if (empty ($link_cat))
    39     $cats = get_categories("type=link&hierarchical=0");
     39    $cats = get_categories(array('type' => 'link', 'hierarchical' => 0));
    4040else
    41     $cats = get_categories('type=link&hierarchical=0&include='.$link_cat);
     41    $cats = get_categories(array('type' => 'link', 'hierarchical' => 0, 'include' => $link_cat));
    4242
    4343foreach ((array) $cats as $cat) {
     
    4848<?php
    4949
    50     $bookmarks = get_bookmarks("category={$cat->term_id}");
     50    $bookmarks = get_bookmarks(array("category" => $cat->term_id));
    5151    foreach ((array) $bookmarks as $bookmark) {
    5252        $title = esc_attr(apply_filters('link_title', $bookmark->link_name));
Note: See TracChangeset for help on using the changeset viewer.