[wp-trac] [WordPress Trac] #44694: Extra and un-neccessary query when no posts found in Posts Rest Controller
WordPress Trac
noreply at wordpress.org
Thu Aug 2 06:15:21 UTC 2018
#44694: Extra and un-neccessary query when no posts found in Posts Rest Controller
-------------------------+------------------------------------
Reporter: pat@… | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.9.7
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: rest-api, performance
-------------------------+------------------------------------
Comment (by subrataemfluence):
Out of curiosity:
What if
`$paged` parameter has been specified
`$page = 1` \\
and `$total_posts = 0`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44694#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list