Sticky posts not removed from query results when pushed to front of posts
|Reported by:||jeffstieler||Owned by:|
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.