Changeset 5589 for branches/2.2/wp-admin/admin-functions.php
- Timestamp:
- 05/29/2007 04:37:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-admin/admin-functions.php
r5453 r5589 348 348 349 349 $post->post_password = format_to_edit( $post->post_password ); 350 351 $post->menu_order = (int) $post->menu_order; 350 352 351 353 if ( $post->post_type == 'page' ) … … 397 399 function get_comment_to_edit( $id ) { 398 400 $comment = get_comment( $id ); 401 402 $comment->comment_ID = (int) $comment->comment_ID; 403 $comment->comment_post_ID = (int) $comment->comment_post_ID; 399 404 400 405 $comment->comment_content = format_to_edit( $comment->comment_content, user_can_richedit() ); 401 406 $comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content); 407 $comment->comment_content = apply_filters( 'comment_text', $comment->comment_content ); 402 408 403 409 $comment->comment_author = format_to_edit( $comment->comment_author ); 404 410 $comment->comment_author_email = format_to_edit( $comment->comment_author_email ); 411 $comment->comment_author_url = clean_url($comment->comment_author_url); 405 412 $comment->comment_author_url = format_to_edit( $comment->comment_author_url ); 406 413 … … 410 417 function get_category_to_edit( $id ) { 411 418 $category = get_category( $id ); 419 420 $category->term_id = (int) $category->term_id; 421 $category->parent = (int) $category->parent; 412 422 413 423 return $category; … … 1027 1037 $entry['meta_key'] = attribute_escape($entry['meta_key']); 1028 1038 $entry['meta_value'] = attribute_escape($entry['meta_value']); 1039 $entry['meta_id'] = (int) $entry['meta_id']; 1029 1040 $r .= "\n\t<tr id='meta-{$entry['meta_id']}' class='$style'>"; 1030 1041 $r .= "\n\t\t<td valign='top'><input name='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' /></td>"; … … 1079 1090 1080 1091 foreach ( $keys as $key ) { 1081 $key = attribute_escape( $key );1092 $key = attribute_escape( $key ); 1082 1093 echo "\n\t<option value='$key'>$key</option>"; 1083 1094 }
Note: See TracChangeset
for help on using the changeset viewer.