Ticket #1371: html-in-post-titles.2.diff
| File html-in-post-titles.2.diff, 3.8 KB (added by MathiasBynens, 7 years ago) |
|---|
-
wp-includes/template-functions-post.php
14 14 echo $id; 15 15 } 16 16 17 function the_title($before = '', $after = '', $echo = true ) {17 function the_title($before = '', $after = '', $echo = true, $strip = false) { 18 18 $title = get_the_title(); 19 19 if ( strlen($title) > 0 ) { 20 20 $title = apply_filters('the_title', $before . $title . $after, $before, $after); 21 if ($strip) 22 $title = strip_tags($title); 21 23 if ($echo) 22 24 echo $title; 23 25 else -
wp-content/themes/default/archive.php
36 36 37 37 <?php while (have_posts()) : the_post(); ?> 38 38 <div class="post"> 39 <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>39 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title('', '', 1, 1); ?>"><?php the_title(); ?></a></h3> 40 40 <small><?php the_time('l, F jS, Y') ?></small> 41 41 42 42 <div class="entry"> -
wp-content/themes/default/index.php
7 7 <?php while (have_posts()) : the_post(); ?> 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('', '', 1, 1); ?>"><?php the_title(); ?></a></h2> 11 11 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> 12 12 13 13 <div class="entry"> -
wp-content/themes/default/search.php
15 15 <?php while (have_posts()) : the_post(); ?> 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('', '', 1, 1); ?>"><?php the_title(); ?></a></h3> 19 19 <small><?php the_time('l, F jS, Y') ?></small> 20 20 21 21 <div class="entry"> -
wp-content/themes/default/single.php
10 10 </div> 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('', '', 1, 1); ?>"><?php the_title(); ?></a></h2> 14 14 15 15 <div class="entrytext"> 16 16 <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>--- C:\Documents and Settings\Mathias\Bureaublad\post.php Mon Jun 13 21:40:59 2005 -
wp-admin/post.php
255 255 ?> 256 256 <div id='preview' class='wrap'> 257 257 <h2><?php _e('Post Preview (updated when post is saved)'); ?></h2> 258 <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__("Permanent Link: %s"), get_the_title()); ?>"><?php the_title(); ?></a></h3>259 <div class="meta"><?php _e( "Filed under:"); ?> <?php the_category(','); ?> — <?php the_author() ?> @ <?php the_time()?></div>258 <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__("Permanent Link: %s"), the_title('', '', '0', '1'))"><?php the_title(); ?></a></h3> 259 <div class="meta"><?php _e('Filed under:'); ?> <?php the_category(','); ?> — <?php the_author(); ?> @ <?php the_time(); ?></div> 260 260 261 261 <div class="storycontent"> 262 262 <?php
