Changeset 4112 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 08/24/2006 10:33:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r4100 r4112 302 302 $post->post_title = apply_filters('title_edit_pre', $post->post_title); 303 303 304 $post->post_password = format_to_edit($post->post_password); 305 304 306 if ($post->post_type == 'page') 305 307 $post->page_template = get_post_meta($id, '_wp_page_template', true); … … 381 383 } 382 384 385 386 function get_user_to_edit($user_id) { 387 $user = new WP_User($user_id); 388 $user->user_login = wp_specialchars($user->user_login, 1); 389 $user->user_email = wp_specialchars($user->user_email, 1); 390 $user->user_url = wp_specialchars($user->user_url, 1); 391 $user->first_name = wp_specialchars($user->first_name, 1); 392 $user->last_name = wp_specialchars($user->last_name, 1); 393 $user->display_name = wp_specialchars($user->display_name, 1); 394 $user->nickname = wp_specialchars($user->nickname, 1); 395 $user->aim = wp_specialchars($user->aim, 1); 396 $user->yim = wp_specialchars($user->yim, 1); 397 $user->jabber = wp_specialchars($user->jabber, 1); 398 $user->description = wp_specialchars($user->description); 399 400 return $user; 401 } 383 402 384 403 // Creates a new user from the "Users" form using $_POST information. … … 510 529 $link->link_url = wp_specialchars($link->link_url, 1); 511 530 $link->link_name = wp_specialchars($link->link_name, 1); 512 $link->link_description = wp_specialchars($link->link_description); 531 $link->link_image = wp_specialchars($link->link_image, 1); 532 $link->link_description = wp_specialchars($link->link_description, 1); 513 533 $link->link_notes = wp_specialchars($link->link_notes); 514 $link->link_rss = wp_specialchars($link->link_rss); 534 $link->link_rss = wp_specialchars($link->link_rss, 1); 535 $link->link_rel = wp_specialchars($link->link_rel, 1); 515 536 $link->post_category = $link->link_category; 516 537 … … 960 981 if ('_' == $entry['meta_key'] { 0 }) 961 982 $style .= ' hidden'; 962 $key_js = addslashes(wp_specialchars( $entry['meta_key'], 'double' ));983 $key_js = js_escape($entry['meta_key']); 963 984 $entry['meta_key'] = wp_specialchars( $entry['meta_key'], true ); 964 985 $entry['meta_value'] = wp_specialchars( $entry['meta_value'], true ); … … 1012 1033 1013 1034 foreach ($keys as $key) { 1035 $key = wp_specialchars($key, 1); 1014 1036 echo "\n\t<option value='$key'>$key</option>"; 1015 1037 }
Note: See TracChangeset
for help on using the changeset viewer.