[wp-meta] [Making WordPress.org] #866: Themes search API returns invalid result when `per_page=1`
Making WordPress.org
noreply at wordpress.org
Wed Feb 18 12:33:46 UTC 2015
#866: Themes search API returns invalid result when `per_page=1`
------------------------------+-------------------------------
Reporter: danielbachhuber | Owner:
Type: defect | Status: new
Priority: normal | Component: api.wordpress.org
Resolution: | Keywords:
------------------------------+-------------------------------
Comment (by Otto42):
That didn't break this, that fixed a completely different problem.
The underlying issue is indeed that if you set the per-page results too
low, then the expected theme won't be in the first page of results, and so
it cannot be pushed to the top. So, don't set the per-page results that
low. Nothing in core does that.
In the long run, this might be fixed by the new theme directory and new
functionality in the API to use that directory (using WP_Query and such),
but for now, per_page should probably never be lower than 8 or 10 or so.
Core queries expect 30 per-page, I think.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/866#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list