mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 21:28:02 +01:00
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:
parent
35d6ed5ebf
commit
7aca30b768
@ -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…
x
Reference in New Issue
Block a user