Changeset 5752 for trunk/wp-includes/post-template.php
- Timestamp:
- 06/25/2007 05:48:35 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r5708 r5752 19 19 function the_title($before = '', $after = '', $echo = true) { 20 20 $title = get_the_title(); 21 if ( strlen($title) > 0 ) { 22 $title = apply_filters('the_title', $before . $title . $after, $before, $after); 23 if ( $echo ) 24 echo $title; 25 else 26 return $title; 27 } 28 } 29 30 31 function get_the_title($id = 0) { 21 22 if ( strlen($title) <= 0 ) 23 return; 24 25 $title = $before . $title . $after; 26 27 if ( $echo ) 28 echo $title; 29 else 30 return $title; 31 } 32 33 34 function get_the_title( $id = 0 ) { 32 35 $post = &get_post($id); 33 36 … … 38 41 $title = sprintf(__('Private: %s'), $title); 39 42 40 return $title;43 return apply_filters( 'the_title', $title ); 41 44 } 42 45
Note: See TracChangeset
for help on using the changeset viewer.