Changeset 4229 for branches/2.0/wp-admin/admin-functions.php
- Timestamp:
- 09/25/2006 02:09:08 AM (19 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/admin-functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/admin-functions.php
r4051 r4229 266 266 $post->post_title = apply_filters('title_edit_pre', $post->post_title); 267 267 268 $post->post_password = format_to_edit($post->post_password); 269 268 270 if ($post->post_status == 'static') 269 271 $post->page_template = get_post_meta($id, '_wp_page_template', true); … … 332 334 333 335 return $category; 336 } 337 338 function get_user_to_edit($user_id) { 339 $user = new WP_User($user_id); 340 $user->user_login = wp_specialchars($user->user_login, 1); 341 $user->user_email = wp_specialchars($user->user_email, 1); 342 $user->user_url = wp_specialchars($user->user_url, 1); 343 $user->first_name = wp_specialchars($user->first_name, 1); 344 $user->last_name = wp_specialchars($user->last_name, 1); 345 $user->display_name = wp_specialchars($user->display_name, 1); 346 $user->nickname = wp_specialchars($user->nickname, 1); 347 $user->aim = wp_specialchars($user->aim, 1); 348 $user->yim = wp_specialchars($user->yim, 1); 349 $user->jabber = wp_specialchars($user->jabber, 1); 350 $user->description = wp_specialchars($user->description); 351 352 return $user; 334 353 } 335 354 … … 448 467 function get_link_to_edit($link_id) { 449 468 $link = get_link($link_id); 450 469 451 470 $link->link_url = wp_specialchars($link->link_url, 1); 452 471 $link->link_name = wp_specialchars($link->link_name, 1); 453 $link->link_description = wp_specialchars($link->link_description); 472 $link->link_image = wp_specialchars($link->link_image, 1); 473 $link->link_description = wp_specialchars($link->link_description, 1); 454 474 $link->link_notes = wp_specialchars($link->link_notes); 455 $link->link_rss = wp_specialchars($link->link_rss); 456 475 $link->link_rss = wp_specialchars($link->link_rss, 1); 476 $link->link_rel = wp_specialchars($link->link_rel, 1); 477 $link->post_category = $link->link_category; 478 457 479 return $link; 458 480 } … … 877 899 878 900 foreach ($keys as $key) { 901 $key = wp_specialchars($key, 1); 879 902 echo "\n\t<option value='$key'>$key</option>"; 880 903 }
Note: See TracChangeset
for help on using the changeset viewer.