WordPress.org

Make WordPress Core

Changeset 8105


Ignore:
Timestamp:
06/16/08 22:19:54 (6 years ago)
Author:
ryan
Message:

category_name is not a valid arg. Use namelike. Props drdavid. fixes #6722 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/bookmark-template.php

    r6828 r8105  
    173173    if ( $categorize ) { 
    174174        //Split the bookmarks into ul's for each category 
    175         $cats = get_terms('link_category', "category_name=$category_name&include=$category&orderby=$category_orderby&order=$category_order&hierarchical=0"); 
     175        $cats = get_terms('link_category', array('name__like' => $category_name, 'include' => $category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0)); 
    176176 
    177177        foreach ( (array) $cats as $cat ) { 
Note: See TracChangeset for help on using the changeset viewer.