Changeset 2538
- Timestamp:
- 04/17/2005 05:09:19 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/single.php
r2390 r2538 6 6 7 7 <div class="navigation"> 8 <div class="alignleft"><?php previous_post ('« %','','yes') ?></div>9 <div class="alignright"><?php next_post (' % »','','yes') ?></div>8 <div class="alignleft"><?php previous_post_link('« %link') ?></div> 9 <div class="alignright"><?php next_post_link('%link »') ?></div> 10 10 </div> 11 11 -
trunk/wp-includes/template-functions-links.php
r2523 r2538 294 294 } 295 295 296 // Deprecated. Use previous_post_link(). 296 297 function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') { 297 298 global $id, $post, $wpdb; … … 322 323 $string = '<a href="'.get_permalink($lastpost->ID).'">'.$previous; 323 324 if ($title == 'yes') { 324 $string .= wptexturize($lastpost->post_title);325 $string .= apply_filters('the_title', $lastpost->post_title, $lastpost); 325 326 } 326 327 $string .= '</a>'; … … 331 332 } 332 333 334 // Deprecated. Use next_post_link(). 333 335 function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') { 334 336 global $posts_per_page, $post, $wpdb; … … 360 362 $string = '<a href="'.get_permalink($nextpost->ID).'">'.$next; 361 363 if ($title=='yes') { 362 $string .= wptexturize($nextpost->post_title);364 $string .= apply_filters('the_title', $nextpost->post_title, $nextpost); 363 365 } 364 366 $string .= '</a>';
Note: See TracChangeset
for help on using the changeset viewer.