[wp-trac] [WordPress Trac] #29667: next_post_link & previous_post_link Category exclude broken *UPDATE*

WordPress Trac noreply at wordpress.org
Sun Sep 14 16:08:06 UTC 2014


#29667: next_post_link & previous_post_link Category exclude broken *UPDATE*
--------------------------+-----------------------------
 Reporter:  gabrieldiggs  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 (I was unable to update my previous ticket so I created a new one
 including the original post)

 Hello,
 As of WordPress 4.0 my custom next_post_link & previous_post_link is
 broken. My code is as follows:


 <?php next_post_link( '« %link', '%title', TRUE, '115' ); ?> |

     <?php previous_post_link( '%link »', '%title', TRUE, '115' ); ?>


 WordPress now ignores the excluded category (115) part of the code and
 shows all post regardless of category when clicking the next or previous
 post links. Everything was working before the upgrade to 4.0
 Attachments (0)


 '''*UPDATE*'''

 On a hunch I downloaded WordPress version 3.9.2 from the archive and
 replaced the link-template.php from 4.0 with the version from 3.9.2. Sure
 enough everything is back to normal on my site so the problem with
 category exclusion is definitely due to changes made in link-template.php
 from WordPress 3.9.2 to 4.0. I compared both files using File Merge on Mac
 OS X and there are multiple differences between the two files. Should I
 just keep the version from 3.9.2 or should I wait for a fix to WordPress
 version 4.0?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29667>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list