Make WordPress Core

Ticket #22413: 22413.patch

File 22413.patch, 417 bytes (added by johnjamesjacoby, 13 years ago)
  • wp-includes/post-template.php

     
    267267                return __( 'There is no excerpt because this is a protected post.' );
    268268        }
    269269
    270         return apply_filters( 'get_the_excerpt', $post->post_excerpt );
     270        $post_excerpt = isset( $post->post_excerpt ) ? $post->post_excerpt : '';
     271
     272        return apply_filters( 'get_the_excerpt', $post_excerpt );
    271273}
    272274
    273275/**