has_excerpt() template tag. fixes #4177 for 2.3

git-svn-id: http://svn.automattic.com/wordpress/trunk@5293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-04-22 04:25:47 +00:00
parent be8f80d6d2
commit 2e72244bde
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,10 @@ function get_the_excerpt($fakeit = true) {
return apply_filters('get_the_excerpt', $output);
}
function has_excerpt( $id = 0 ) {
$post = &get_post( $id );
return ( !empty( $post->post_excerpt ) );
}
function wp_link_pages($args = '') {
global $post;