WordPress.org

Make WordPress Core

Changeset 8183


Ignore:
Timestamp:
06/24/08 17:44:30 (6 years ago)
Author:
ryan
Message:

Add exclude_category argument to wp_list_bookmarks(). Props ionfish. fixes #6808

File:
1 edited

Legend:

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

    r8132 r8183  
    187187    $defaults = array( 
    188188        'orderby' => 'name', 'order' => 'ASC', 
    189         'limit' => -1, 'category' => '', 
     189        'limit' => -1, 'category' => '', 'exclude_category' => '', 
    190190        'category_name' => '', 'hide_invisible' => 1, 
    191191        'show_updated' => 0, 'echo' => 1, 
     
    204204    if ( $categorize ) { 
    205205        //Split the bookmarks into ul's for each category 
    206         $cats = get_terms('link_category', array('name__like' => $category_name, 'include' => $category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0)); 
     206        $cats = get_terms('link_category', array('name__like' => $category_name, 'include' => $category, 'exclude' => $exclude_category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0)); 
    207207 
    208208        foreach ( (array) $cats as $cat ) { 
Note: See TracChangeset for help on using the changeset viewer.