has_excerpt() template tag. fixes #4177 for 2.3

git-svn-id: https://develop.svn.wordpress.org/trunk@5293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-04-22 04:25:47 +00:00
parent 35d6ed5ebf
commit 7aca30b768
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;