Changeset 6132
- Timestamp:
- 09/18/2007 10:50:59 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/archive.php
r5996 r6132 30 30 <?php while (have_posts()) : the_post(); ?> 31 31 <div class="post"> 32 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title (); ?>"><?php the_title(); ?></a></h3>32 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> 33 33 <small><?php the_time('l, F jS, Y') ?></small> 34 34 -
trunk/wp-content/themes/default/attachment.php
r6026 r6132 12 12 <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?> 13 13 <div class="post" id="post-<?php the_ID(); ?>"> 14 <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title (); ?>"><?php the_title(); ?></a></h2>14 <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> 15 15 <div class="entry"> 16 16 <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p> -
trunk/wp-content/themes/default/index.php
r5664 r6132 8 8 9 9 <div class="post" id="post-<?php the_ID(); ?>"> 10 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title (); ?>"><?php the_title(); ?></a></h2>10 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> 11 11 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> 12 12 -
trunk/wp-content/themes/default/search.php
r5664 r6132 16 16 17 17 <div class="post"> 18 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title (); ?>"><?php the_title(); ?></a></h3>18 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> 19 19 <small><?php the_time('l, F jS, Y') ?></small> 20 20 -
trunk/wp-content/themes/default/single.php
r5982 r6132 11 11 12 12 <div class="post" id="post-<?php the_ID(); ?>"> 13 <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title (); ?>"><?php the_title(); ?></a></h2>13 <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> 14 14 15 15 <div class="entry"> -
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.