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:
parent
be8f80d6d2
commit
2e72244bde
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue