Fix notice when searching categories. Props gortsleigh. fixes #9970
git-svn-id: http://svn.automattic.com/wordpress/trunk@11485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02fb7b43fe
commit
9dbf550f9e
|
@ -121,7 +121,7 @@ function _cat_row( $category, $level, $name_override = false ) {
|
|||
$category = get_category( $category, OBJECT, 'display' );
|
||||
|
||||
$default_cat_id = (int) get_option( 'default_category' );
|
||||
$pad = str_repeat( '— ', $level );
|
||||
$pad = str_repeat( '— ', max(0, $level) );
|
||||
$name = ( $name_override ? $name_override : $pad . ' ' . $category->name );
|
||||
$edit_link = "categories.php?action=edit&cat_ID=$category->term_id";
|
||||
if ( current_user_can( 'manage_categories' ) ) {
|
||||
|
|
Loading…
Reference in New Issue