WordPress.org

Make WordPress Core

Changeset 11485


Ignore:
Timestamp:
05/29/09 16:36:44 (6 years ago)
Author:
ryan
Message:

Fix notice when searching categories. Props gortsleigh. fixes #9970

File:
1 edited

Legend:

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

    r11478 r11485  
    122122 
    123123    $default_cat_id = (int) get_option( 'default_category' ); 
    124     $pad = str_repeat( '— ', $level ); 
     124    $pad = str_repeat( '— ', max(0, $level) ); 
    125125    $name = ( $name_override ? $name_override : $pad . ' ' . $category->name ); 
    126126    $edit_link = "categories.php?action=edit&cat_ID=$category->term_id"; 
Note: See TracChangeset for help on using the changeset viewer.