Changeset 6392
- Timestamp:
- 12/16/2007 09:40:36 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r6380 r6392 160 160 function write_nested_categories( $categories ) { 161 161 foreach ( $categories as $category ) { 162 echo '<li id="category-', $category['cat_ID'], '"><label for="in-category-', $category['cat_ID'], '" class="selectit"><input value="', $category['cat_ID'], '" type="checkbox" name="post_category[]" id="in-category-', $category['cat_ID'], '"', ($category['checked'] ? ' checked="checked"' : "" ), '/> ', wp_specialchars( apply_filters('the_category', $category['cat_name'] )), "</label></li>";162 echo "\n", '<li id="category-', $category['cat_ID'], '"><label for="in-category-', $category['cat_ID'], '" class="selectit"><input value="', $category['cat_ID'], '" type="checkbox" name="post_category[]" id="in-category-', $category['cat_ID'], '"', ($category['checked'] ? ' checked="checked"' : "" ), '/> ', wp_specialchars( apply_filters('the_category', $category['cat_name'] )), '</label>'; 163 163 164 164 if ( $category['children'] ) { 165 echo " <ul>\n";165 echo "\n<ul>"; 166 166 write_nested_categories( $category['children'] ); 167 echo "</ul>\n"; 168 } 167 echo "\n</ul>"; 168 } 169 echo '</li>'; 169 170 } 170 171 }
Note: See TracChangeset
for help on using the changeset viewer.