[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 21:04:50 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 danielbachhuber):
> 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.
Er, this seems like an API bug to me, not user error.
> The breakage lies in the re-ordering that fails to properly occur when
the per-page is set too low.
Right. It's a bug in the API.
If it's not a priority to fix, you can say that. I've come up with an
alternative for now. I don't think calling it user error is appropriate in
this regard though.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/866#comment:6>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list