[wp-trac] [WordPress Trac] #30440: {$adjacent}_post_link filter should pass $adjacent variable itself as parameter.

WordPress Trac noreply at wordpress.org
Fri Nov 21 13:11:22 UTC 2014


#30440: {$adjacent}_post_link filter should pass $adjacent variable itself as
parameter.
-------------------------------+-----------------------------
 Reporter:  ankit.gade@…       |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  2.6
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 {$adjacent}_post_link filter should pass $adjacent variable itself as
 parameter to the callback function. This will be useful in scenario where
 I am using same callback function for '''''previous_post_link''''' and
 '''''next_post_link''''' filters.

 If this variable is not passed, I will be unable to determine whether
 given post is previous or next to current post. Moreover, I will have to
 write nearly same code twice.

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


More information about the wp-trac mailing list