Cleaning up filters and format-to-post

git-svn-id: https://develop.svn.wordpress.org/trunk@2059 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-01-06 22:51:44 +00:00
parent cbafeff467
commit 00d285d0dd
3 changed files with 4 additions and 10 deletions
-5
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