Pass the default post to default_content, default_title, and default_excerpt filters. Allows filtering by post_type and other attributes. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@13051 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9e4be29f4b
commit
2f7ef8196b
@ -374,9 +374,9 @@ function get_default_post_to_edit( $post_type = 'post', $create_in_db = false )
|
||||
$post->menu_order = 0;
|
||||
}
|
||||
|
||||
$post->post_content = apply_filters( 'default_content', $post_content );
|
||||
$post->post_title = apply_filters( 'default_title', $post_title );
|
||||
$post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt );
|
||||
$post->post_content = apply_filters( 'default_content', $post_content, $post );
|
||||
$post->post_title = apply_filters( 'default_title', $post_title, $post );
|
||||
$post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt, $post );
|
||||
$post->post_name = '';
|
||||
|
||||
return $post;
|
||||
|
Loading…
Reference in New Issue
Block a user