Cleaning up filters and format-to-post

git-svn-id: http://svn.automattic.com/wordpress/trunk@2059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-01-06 22:51:44 +00:00
parent d572092fd6
commit 99df7e3a03
3 changed files with 4 additions and 10 deletions

View File

@ -30,9 +30,7 @@ case 'post':
$post_pingback = intval($_POST['post_pingback']);
$content = apply_filters('content_save_pre', $_POST['content']);
$content = format_to_post($content);
$excerpt = apply_filters('excerpt_save_pre',$_POST['excerpt']);
$excerpt = format_to_post($excerpt);
$post_title = $_POST['post_title'];
$post_categories = $_POST['post_category'];
$post_status = $_POST['post_status'];
@ -236,9 +234,7 @@ case 'editpost':
$post_categories = $_POST['post_category'];
if (!$post_categories) $post_categories[] = 1;
$content = apply_filters('content_save_pre', $_POST['content']);
$content = format_to_post($content);
$excerpt = apply_filters('excerpt_save_pre', $_POST['excerpt']);
$excerpt = format_to_post($excerpt);
$post_title = $_POST['post_title'];
$prev_status = $_POST['prev_status'];
$post_status = $_POST['post_status'];
@ -607,7 +603,6 @@ case 'editedcomment':
$datemodif = '';
}
$content = apply_filters('comment_save_pre', $_POST['content']);
$content = format_to_post($content);
$result = $wpdb->query("
UPDATE $wpdb->comments SET

View File

@ -139,7 +139,6 @@ add_filter('pre_comment_author_url', 'trim');
add_filter('pre_comment_author_url', 'clean_url');
add_filter('pre_comment_content', 'wp_filter_kses');
add_filter('pre_comment_content', 'format_to_post');
add_filter('pre_comment_content', 'balanceTags', 30);
// Default filters for these functions

View File

@ -357,7 +357,7 @@ class wp_xmlrpc_server extends IXR_Server {
$post_category = xmlrpc_getpostcategory($content);
$content = xmlrpc_removepostdata($content);
$post_content = format_to_post($content);
$post_content = apply_filters( 'content_save_pre', $content );
$post_date = current_time('mysql');
$post_date_gmt = current_time('mysql', 1);
@ -411,7 +411,7 @@ class wp_xmlrpc_server extends IXR_Server {
$post_category = xmlrpc_getpostcategory($content);
$content = xmlrpc_removepostdata($content);
$post_content = format_to_post($content);
$post_content = apply_filters( 'content_save_pre', $content );
$postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt');
@ -489,7 +489,7 @@ class wp_xmlrpc_server extends IXR_Server {
$post_author = $user_data->ID;
$post_title = $content_struct['title'];
$post_content = format_to_post($content_struct['description']);
$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
$post_status = $publish ? 'publish' : 'draft';
$post_excerpt = $content_struct['mt_excerpt'];
@ -572,7 +572,7 @@ class wp_xmlrpc_server extends IXR_Server {
extract($postdata);
$post_title = $content_struct['title'];
$post_content = format_to_post($content_struct['description']);
$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
$catnames = $content_struct['categories'];
if ($catnames) {