[wp-trac] [WordPress Trac] #58147: bugfix: rewind_posts when posts array index != 0
WordPress Trac
noreply at wordpress.org
Tue Apr 18 18:44:46 UTC 2023
#58147: bugfix: rewind_posts when posts array index != 0
--------------------------+------------------------------
Reporter: diogovf | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 6.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by diogovf):
Hi,
I've forgot the support for the old php versions, yeah I'll update this
with reset, thanks @Presskopp and @petitphp.
I'vee a wordpress linked to an external API and when I receive posts
sorted by the API. The final array may start with a larger ID like 1572 or
3518 because the WP_post object is built and sorted by the external API. I
noticed the problem when I joined the project and the team overcame the
problem by writing a wrapper to work around the error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58147#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list