From 2bbd69a21e3d1d0de87cf9306e4c6fa647cb426a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 10 Jan 2007 09:19:02 +0000 Subject: [PATCH] Fix list cats style arg. Props Dickie. fixes #3552 git-svn-id: https://develop.svn.wordpress.org/trunk@4713 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/deprecated.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 634698dda4..a4be01fd79 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -429,8 +429,8 @@ function wp_list_cats($args = '') { $r['show_last_update'] = $r['optiondates']; if ( isset($r['optioncount']) ) $r['show_count'] = $r['optioncount']; - if ( !empty($r['list']) ) - $r['style'] = 'break'; + if ( isset($r['list']) ) + $r['style'] = $r['list'] ? 'list' : 'break'; $r['title_li'] = ''; return wp_list_categories($r);