From 64e27492d158b8ebc355330f4be15ff18f649853 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 11 Oct 2004 22:13:40 +0000 Subject: [PATCH] Some additional API hooks. git-svn-id: http://svn.automattic.com/wordpress/trunk@1782 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index 1e5dc3ba32..e68f3e34dc 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -222,9 +222,12 @@ case 'edit': $content = $postdata->post_content; $content = format_to_edit($content); + $content = apply_filters('content_edit_pre', $content); $excerpt = $postdata->post_excerpt; $excerpt = format_to_edit($excerpt); + $excerpt = apply_filters('excerpt_edit_pre', $excerpt); $edited_post_title = format_to_edit($postdata->post_title); + $edited_post_title = apply_filters('title_edit_pre', $edited_post_title); $post_status = $postdata->post_status; $comment_status = $postdata->comment_status; $ping_status = $postdata->ping_status; @@ -236,7 +239,6 @@ case 'edit': if ($post_status == 'static') { $page_template = get_post_meta($post_ID, '_wp_page_template', true); - include('edit-page-form.php'); } else { include('edit-form-advanced.php'); @@ -506,6 +508,7 @@ case 'editcomment': $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. Go back!'), 'javascript:history.go(-1)')); $content = $commentdata['comment_content']; $content = format_to_edit($content); + $content = apply_filters('comment_edit_pre', $content); include('edit-form-comment.php'); @@ -755,6 +758,10 @@ default: $post_pingback = get_settings('default_pingback_flag'); $default_post_cat = get_settings('default_category'); + $content = apply_filters('default_content', $content); + $edited_post_title = apply_filters('default_title', $edited_post_title); + $excerpt = apply_filters('default_excerpt', $excerpt); + if (get_settings('advanced_edit')) { include('edit-form-advanced.php'); } else {