Some additional API hooks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f285ca5c55
commit
64e27492d1
|
@ -222,9 +222,12 @@ case 'edit':
|
||||||
|
|
||||||
$content = $postdata->post_content;
|
$content = $postdata->post_content;
|
||||||
$content = format_to_edit($content);
|
$content = format_to_edit($content);
|
||||||
|
$content = apply_filters('content_edit_pre', $content);
|
||||||
$excerpt = $postdata->post_excerpt;
|
$excerpt = $postdata->post_excerpt;
|
||||||
$excerpt = format_to_edit($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 = format_to_edit($postdata->post_title);
|
||||||
|
$edited_post_title = apply_filters('title_edit_pre', $edited_post_title);
|
||||||
$post_status = $postdata->post_status;
|
$post_status = $postdata->post_status;
|
||||||
$comment_status = $postdata->comment_status;
|
$comment_status = $postdata->comment_status;
|
||||||
$ping_status = $postdata->ping_status;
|
$ping_status = $postdata->ping_status;
|
||||||
|
@ -236,7 +239,6 @@ case 'edit':
|
||||||
|
|
||||||
if ($post_status == 'static') {
|
if ($post_status == 'static') {
|
||||||
$page_template = get_post_meta($post_ID, '_wp_page_template', true);
|
$page_template = get_post_meta($post_ID, '_wp_page_template', true);
|
||||||
|
|
||||||
include('edit-page-form.php');
|
include('edit-page-form.php');
|
||||||
} else {
|
} else {
|
||||||
include('edit-form-advanced.php');
|
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. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));
|
$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));
|
||||||
$content = $commentdata['comment_content'];
|
$content = $commentdata['comment_content'];
|
||||||
$content = format_to_edit($content);
|
$content = format_to_edit($content);
|
||||||
|
$content = apply_filters('comment_edit_pre', $content);
|
||||||
|
|
||||||
include('edit-form-comment.php');
|
include('edit-form-comment.php');
|
||||||
|
|
||||||
|
@ -755,6 +758,10 @@ default:
|
||||||
$post_pingback = get_settings('default_pingback_flag');
|
$post_pingback = get_settings('default_pingback_flag');
|
||||||
$default_post_cat = get_settings('default_category');
|
$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')) {
|
if (get_settings('advanced_edit')) {
|
||||||
include('edit-form-advanced.php');
|
include('edit-form-advanced.php');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue