Changeset 4417 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 10/24/2006 03:57:19 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r4413 r4417 288 288 // Get an existing post and format it for editing. 289 289 function get_post_to_edit($id) { 290 global $richedit;291 $richedit = ( 'true' == get_user_option('rich_editing') ) ? true : false;292 290 293 291 $post = get_post($id); 294 292 295 $post->post_content = format_to_edit($post->post_content, $richedit);293 $post->post_content = format_to_edit($post->post_content, user_can_richedit()); 296 294 $post->post_content = apply_filters('content_edit_pre', $post->post_content); 297 295 … … 351 349 352 350 function get_comment_to_edit($id) { 353 global $richedit;354 $richedit = ( 'true' == get_user_option('rich_editing') ) ? true : false;355 356 351 $comment = get_comment($id); 357 352 358 $comment->comment_content = format_to_edit($comment->comment_content, $richedit);353 $comment->comment_content = format_to_edit($comment->comment_content, user_can_richedit()); 359 354 $comment->comment_content = apply_filters('comment_edit_pre', $comment->comment_content); 360 355
Note: See TracChangeset
for help on using the changeset viewer.