Remove calls to html_entity_decode(). fixes #2029

git-svn-id: http://svn.automattic.com/wordpress/trunk@3276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2005-12-07 00:36:07 +00:00
parent 0d0c51e8fe
commit 1547da4733
6 changed files with 17 additions and 11 deletions

View File

@@ -241,9 +241,12 @@ function edit_comment() {
// Get an existing post and format it for editing.
function get_post_to_edit($id) {
global $richedit;
$richedit = ( 'true' == get_user_option('rich_editing') ) ? true : false;
$post = get_post($id);
$post->post_content = format_to_edit($post->post_content);
$post->post_content = format_to_edit($post->post_content, $richedit);
$post->post_content = apply_filters('content_edit_pre', $post->post_content);
$post->post_excerpt = format_to_edit($post->post_excerpt);
@@ -299,9 +302,12 @@ function get_default_post_to_edit() {
}
function get_comment_to_edit($id) {
global $richedit;
$richedit = ( 'true' == get_user_option('rich_editing') ) ? true : false;
$comment = get_comment($id);
$comment->comment_content = format_to_edit($comment->comment_content);
$comment->comment_content = format_to_edit($comment->comment_content, $richedit);
$comment->comment_content = apply_filters('comment_edit_pre', $comment->comment_content);
$comment->comment_author = format_to_edit($comment->comment_author);