Changeset 1781
- Timestamp:
- 10/11/04 22:07:09 (4 years ago)
- Files:
-
- trunk/wp-admin/post.php (modified) (3 diffs)
- trunk/wp-comments-post.php (modified) (1 diff)
- trunk/wp-includes/template-functions-comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/post.php
r1753 r1781 49 49 50 50 $post_pingback = intval($_POST['post_pingback']); 51 $content = balanceTags($_POST['content']);51 $content = apply_filters('content_save_pre', $_POST['content']); 52 52 $content = format_to_post($content); 53 $excerpt = balanceTags($_POST['excerpt']);53 $excerpt = apply_filters('excerpt_save_pre',$_POST['excerpt']); 54 54 $excerpt = format_to_post($excerpt); 55 55 $post_title = $_POST['post_title']; … … 282 282 $post_categories = $_POST['post_category']; 283 283 if (!$post_categories) $post_categories[] = 1; 284 $content = balanceTags($_POST['content']);284 $content = apply_filters('content_save_pre', $_POST['content']); 285 285 $content = format_to_post($content); 286 $excerpt = balanceTags($_POST['excerpt']);286 $excerpt = apply_filters('excerpt_save_pre', $_POST['excerpt']); 287 287 $excerpt = format_to_post($excerpt); 288 288 $post_title = $_POST['post_title']; … … 703 703 $datemodif = ''; 704 704 } 705 $content = balanceTags($_POST['content']);705 $content = apply_filters('comment_save_pre', $_POST['content']); 706 706 $content = format_to_post($content); 707 707 trunk/wp-comments-post.php
r1756 r1781 49 49 $now_gmt = current_time('mysql', 1); 50 50 51 52 $comment = balanceTags($comment, 1);53 51 $comment = format_to_post($comment); 54 52 $comment = apply_filters('post_comment_text', $comment); trunk/wp-includes/template-functions-comment.php
r1768 r1781 12 12 add_filter('comment_text', 'make_clickable'); 13 13 add_filter('comment_text', 'wpautop', 30); 14 add_filter('comment_text', 'balanceTags' );14 add_filter('comment_text', 'balanceTags', 50); 15 15 add_filter('comment_text', 'convert_smilies', 20); 16 16 17 17 add_filter('comment_excerpt', 'convert_chars'); 18 19 // Places to balance tags on input 20 add_filter('post_comment_text', 'balanceTags', 50); 21 add_filter('content_save_pre', 'balanceTags', 50); 22 add_filter('excerpt_save_pre', 'balanceTags', 50); 23 add_filter('comment_save_pre', 'balanceTags', 50); 18 24 19 25 function comments_template() {
