[wp-trac] [WordPress Trac] #24597: get_{$adjacent}_post_sort filter should have post type parameter

WordPress Trac noreply at wordpress.org
Wed Jun 19 06:01:09 UTC 2013


#24597: get_{$adjacent}_post_sort filter should have post type parameter
----------------------------+------------------------------
 Reporter:  helgatheviking  |       Owner:
     Type:  enhancement     |      Status:  reopened
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Post Types      |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------
Changes (by nacin):

 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 In general it is best to not rely on global scope. Passing `$post` to this
 filter makes a lot of sense. $post should probably be passed to all of
 these filters.

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


More information about the wp-trac mailing list