[wp-trac] [WordPress Trac] #22360: Database Error with previous_post_link and next_post_link functions

WordPress Trac noreply at wordpress.org
Sun Nov 4 23:26:22 UTC 2012


#22360: Database Error with previous_post_link and next_post_link functions
-------------------------------+------------------------------
 Reporter:  neonwired          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Template           |     Version:  3.4.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => reporter-feedback
 * component:  General => Template


Comment:

 Could not reproduce neither in 3.4.2 with Twenty Eleven nor in 3.5-beta2
 with Twenty Twelve.

 My steps:
 1. Open `single.php`, add `true` to the `previous_post_link()` and
 `next_post_link()` calls:
 {{{
 <?php previous_post_link( '%link', __( '<span class="meta-
 nav">&larr;</span> Previous', 'twentyeleven' ), true ); ?>
 <?php next_post_link( '%link', __( 'Next <span class="meta-
 nav">&rarr;</span>', 'twentyeleven' ), true ); ?>
 }}}
 2. The post is displayed correctly, without a database error.

 Could you provide some steps to reproduce the issue on a clean install?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22360#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list