[wp-trac] [WordPress Trac] #11966: Sticky posts not removed from query results when pushed to front of posts
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 21 15:48:16 UTC 2010
#11966: Sticky posts not removed from query results when pushed to front of posts
--------------------------+-------------------------------------------------
Reporter: jeffstieler | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
array_search() is being used to determine the offset of a processed sticky
post in the query results, and array_splice() is being used to remove it
from the queue.
array_search() returns the key for the sticky post, and array_splice()
expects a numerical index
If the key returned by array_search() does not match the sticky post's
actual offset in the array, it is not removed and appears as a duplicate.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11966>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list