Changeset 6132 for trunk/wp-includes/post-template.php
- Timestamp:
- 09/18/2007 10:50:59 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
r6128 r6132 20 20 $title = get_the_title(); 21 21 22 if ( strlen($title) <= 0 )22 if ( strlen($title) == 0 ) 23 23 return; 24 24 … … 31 31 } 32 32 33 function the_title_attribute( $args = '' ) { 34 $title = get_the_title(); 35 36 if ( strlen($title) == 0 ) 37 return; 38 39 $defaults = array('before' => '', 'after' => '', 'echo' => true); 40 $r = wp_parse_args($args, $defaults); 41 extract( $r, EXTR_SKIP ); 42 43 44 $title = $before . $title . $after; 45 $title = attribute_escape(strip_tags($title)); 46 47 if ( $echo ) 48 echo $title; 49 else 50 return $title; 51 } 33 52 34 53 function get_the_title( $id = 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.