Changeset 2059
- Timestamp:
- 01/06/2005 10:51:44 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
wp-admin/post.php (modified) (3 diffs)
-
wp-includes/vars.php (modified) (1 diff)
-
xmlrpc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r2050 r2059 31 31 $post_pingback = intval($_POST['post_pingback']); 32 32 $content = apply_filters('content_save_pre', $_POST['content']); 33 $content = format_to_post($content);34 33 $excerpt = apply_filters('excerpt_save_pre',$_POST['excerpt']); 35 $excerpt = format_to_post($excerpt);36 34 $post_title = $_POST['post_title']; 37 35 $post_categories = $_POST['post_category']; … … 237 235 if (!$post_categories) $post_categories[] = 1; 238 236 $content = apply_filters('content_save_pre', $_POST['content']); 239 $content = format_to_post($content);240 237 $excerpt = apply_filters('excerpt_save_pre', $_POST['excerpt']); 241 $excerpt = format_to_post($excerpt);242 238 $post_title = $_POST['post_title']; 243 239 $prev_status = $_POST['prev_status']; … … 608 604 } 609 605 $content = apply_filters('comment_save_pre', $_POST['content']); 610 $content = format_to_post($content);611 606 612 607 $result = $wpdb->query(" -
trunk/wp-includes/vars.php
r1997 r2059 140 140 141 141 add_filter('pre_comment_content', 'wp_filter_kses'); 142 add_filter('pre_comment_content', 'format_to_post');143 142 add_filter('pre_comment_content', 'balanceTags', 30); 144 143 -
trunk/xmlrpc.php
r2058 r2059 358 358 359 359 $content = xmlrpc_removepostdata($content); 360 $post_content = format_to_post($content);360 $post_content = apply_filters( 'content_save_pre', $content ); 361 361 362 362 $post_date = current_time('mysql'); … … 412 412 413 413 $content = xmlrpc_removepostdata($content); 414 $post_content = format_to_post($content);414 $post_content = apply_filters( 'content_save_pre', $content ); 415 415 416 416 $postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt'); … … 490 490 491 491 $post_title = $content_struct['title']; 492 $post_content = format_to_post($content_struct['description']);492 $post_content = apply_filters( 'content_save_pre', $content_struct['description'] ); 493 493 $post_status = $publish ? 'publish' : 'draft'; 494 494 … … 573 573 574 574 $post_title = $content_struct['title']; 575 $post_content = format_to_post($content_struct['description']);575 $post_content = apply_filters( 'content_save_pre', $content_struct['description'] ); 576 576 $catnames = $content_struct['categories']; 577 577
Note: See TracChangeset
for help on using the changeset viewer.