Make WordPress Core

Changeset 5293


Ignore:
Timestamp:
04/22/2007 04:25:47 AM (17 years ago)
Author:
rob1n
Message:

has_excerpt() template tag. fixes #4177 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r5244 r5293  
    130130}
    131131
     132function has_excerpt( $id = 0 ) {
     133    $post = &get_post( $id );
     134    return ( !empty( $post->post_excerpt ) );
     135}
    132136
    133137function wp_link_pages($args = '') {
Note: See TracChangeset for help on using the changeset viewer.