Changeset 1940 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 12/12/2004 08:41:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r1938 r1940 91 91 echo '<label for="category-', $category['cat_ID'], '" class="selectit"><input value="', $category['cat_ID'], 92 92 '" type="checkbox" name="post_category[]" id="category-', $category['cat_ID'], '"', 93 ($category['checked'] ? ' checked="checked"' : ""), '/> ', htmlspecialchars($category['cat_name']), "</label>\n";93 ($category['checked'] ? ' checked="checked"' : ""), '/> ', wp_specialchars($category['cat_name']), "</label>\n"; 94 94 95 95 if(isset($category['children'])) { … … 114 114 foreach ($categories as $category) { 115 115 if ($category->category_parent == $parent) { 116 $category->cat_name = htmlspecialchars($category->cat_name);116 $category->cat_name = wp_specialchars($category->cat_name); 117 117 $count = $wpdb->get_var("SELECT COUNT(post_id) FROM $wpdb->post2cat WHERE category_id = $category->cat_ID"); 118 118 $pad = str_repeat('— ', $level); … … 145 145 $count = $wpdb->get_var("SELECT COUNT(post_id) FROM $wpdb->post2cat WHERE category_id = $category->cat_ID"); 146 146 $pad = str_repeat('– ', $level); 147 $category->cat_name = htmlspecialchars($category->cat_name);147 $category->cat_name = wp_specialchars($category->cat_name); 148 148 echo "\n\t<option value='$category->cat_ID'"; 149 149 if ($currentparent == $category->cat_ID)
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)