WordPress.org

Make WordPress Core

Ticket #9269: query.diff

File query.diff, 144 bytes (added by dfellars1, 5 years ago)

add hide_empty=false to get_terms in get_queried_object

Line 
12541c2541
2<                       $term = &get_terms($tax, array('slug'=>$slug));
3---
4>                       $term = &get_terms($tax, array('slug'=>$slug, 'hide_empty'=>false ));