Changeset 12550 for trunk/wp-includes/post-template.php
- Timestamp:
- 12/27/2009 08:57:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r12537 r12550 107 107 $post = &get_post($id); 108 108 109 $title = $post->post_title; 109 $title = isset($post->post_title) ? $post->post_title : ''; 110 $id = isset($post->ID) ? $post->ID : (int) $id; 110 111 111 112 if ( !is_admin() ) { … … 118 119 } 119 120 } 120 return apply_filters( 'the_title', $title, $ post->ID);121 return apply_filters( 'the_title', $title, $id ); 121 122 } 122 123
Note: See TracChangeset
for help on using the changeset viewer.