diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php
index 9a565a6197..8f0b6d5116 100644
--- a/wp-admin/admin-functions.php
+++ b/wp-admin/admin-functions.php
@@ -32,7 +32,7 @@ function write_nested_categories($categories) {
foreach($categories as $category) {
echo '\n";
+ ($category['checked'] ? ' checked="checked"' : ""), '/> ', $category['cat_name'], "\n";
if(isset($category['children'])) {
echo "\n\n";