[wp-trac] [WordPress Trac] #18897: query_posts / WP_query parameter 'offset' should play nicely with 'paged'

WordPress Trac noreply at wordpress.org
Mon Dec 2 17:08:31 UTC 2013


#18897: query_posts / WP_query parameter 'offset' should play nicely with 'paged'
------------------------------------------+-----------------------------
 Reporter:  here                          |       Owner:  wonderboymusic
     Type:  enhancement                   |      Status:  reopened
 Priority:  normal                        |   Milestone:  Future Release
Component:  Query                         |     Version:  3.2.1
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch commit needs-codex  |
------------------------------------------+-----------------------------

Comment (by coffee2code):

 Are we saying that because WP has broken behavior X and people have
 workarounds for X (to be expected), that we can't fix X because people
 hacked around it and now their hack may be duplicative?

 The hacks mentioned above seem to be for the purpose of directly
 addressing the errant behavior of WP, which to me is a different ball of
 wax than if they are trying to make use of errant behavior in some
 unexpected way (still risky) or just casual usage not realizing there was
 any underlying errant behavior. And this isn't the use of advertised
 behavior of the interface/API.

 Fixing errant behavior in core in your own code should come with the
 reasonable expectation that the behavior would (and even should)
 eventually get fixed and that your fix may no longer be needed (or may in
 fact cause issues at that point). There are ways developers could try to
 mitigate this sort of situation.

 We don't really know how many (if many) are affected. Maybe this should
 soak longer in core? The negative side effect of the patched code in
 conjunction with hacked code is likely just posts being skipped on
 pagination under certain use cases, so sites shouldn't be fatally breaking
 if affected.

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


More information about the wp-trac mailing list