Make WordPress Core


Ignore:
Timestamp:
04/17/2005 05:09:19 PM (22 years ago)
Author:
ryan
Message:

Filter the title in next_post() and previous_post(). Mark next_post() and previous_post() as deprecated. Update the default theme to use next_post_link() and previous_post_link(). ​http://mosquito.wordpress.org/view.php?id=1241 Hat tip: wyrfel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/single.php

    r2390 r2538  
    66       
    77                <div class="navigation">
    8                         <div class="alignleft"><?php previous_post('&laquo; %','','yes') ?></div>
    9                         <div class="alignright"><?php next_post(' % &raquo;','','yes') ?></div>
     8                        <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
     9                        <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    1010                </div>
    1111       
Note: See TracChangeset for help on using the changeset viewer.