[wp-trac] [WordPress Trac] #50463: Don't call WP_Query::get_posts() directly
WordPress Trac
noreply at wordpress.org
Wed Jun 24 07:03:27 UTC 2020
#50463: Don't call WP_Query::get_posts() directly
--------------------------+------------------------------
Reporter: Chouby | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Sitemaps | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by Chouby):
* keywords: => has-patch
Comment:
The proposed patch removes the call to `WP_Query::get_posts()` and
replaces it by directly accessing to `$query->posts`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50463#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list