WordPress.org

Make WordPress Core

Ticket #6808: exclude_category.diff

File exclude_category.diff, 750 bytes (added by ionfish, 6 years ago)
  • wp-includes/bookmark-template.php

     
    172172 
    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', "category_name=$category_name&include=$category&exclude=$exclude_category&orderby=$category_orderby&order=$category_order&hierarchical=0"); 
    176176 
    177177                foreach ( (array) $cats as $cat ) { 
    178178                        $params = array_merge($r, array('category'=>$cat->term_id));