Boone Gorges
5950f27205
Query: Standardize treatment of 'orderby' values post__in, post_parent__in, and post_name__in.
...
Ordering by `post__in` was introduced in [21776], but the code assumed that
`post__in` would be a comma-separated string listing post IDs. When an array
of post IDs was passed to the `post__in` query var, 'orderby=post__in' was
not respected. This changeset changes this behavior by handling
'orderby=post__in' in the same way as most other values of 'orderby',
which ensures that arrays as well as strings can be properly parsed.
The same treatment is given to the similar `post_name__in` and
`post_parent__in` options of 'orderby', so that most query generation for
orderby clauses happens in the same place, instead of in special cases.
A slight change in the resulting SQL (related to the whitespace around
parentheses and commas) necessitates a change to an existing REST API test
that does a string comparison against the SQL query.
Props mgibbs189, kelvink.
Fixes #38034 .
Built from https://develop.svn.wordpress.org/trunk@44452
git-svn-id: http://core.svn.wordpress.org/trunk@44283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-01-08 03:33:49 +00:00
..
2018-12-19 03:16:48 +00:00
2019-01-04 19:38:57 +00:00
2018-12-17 03:07:55 +00:00
2018-12-19 03:36:27 +00:00
2018-02-06 02:56:32 +00:00
2019-01-04 19:38:57 +00:00
2018-12-19 17:04:48 +00:00
2018-12-19 03:27:26 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-29 15:50:25 +00:00
2018-08-17 01:51:36 +00:00
2019-01-07 16:59:52 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 02:15:37 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2019-01-04 21:58:51 +00:00
2018-06-28 02:20:54 +00:00
2018-12-19 16:36:48 +00:00
2019-01-07 12:54:48 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:35:29 +00:00
2018-12-20 20:04:50 +00:00
2019-01-07 13:36:50 +00:00
2019-01-04 20:27:49 +00:00
2018-12-13 09:44:23 +00:00
2018-12-17 18:00:52 +00:00
2019-01-07 11:38:50 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:32:30 +00:00
2018-12-17 03:07:55 +00:00
2018-12-19 07:23:47 +00:00
2018-02-25 20:32:30 +00:00
2018-02-25 20:32:30 +00:00
2018-02-27 02:31:31 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:52:52 +00:00
2019-01-05 03:48:50 +00:00
2018-08-17 01:51:36 +00:00
2018-02-27 02:31:31 +00:00
2018-02-25 20:22:30 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:22:30 +00:00
2018-03-25 19:33:31 +00:00
2019-01-04 21:58:51 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:22:30 +00:00
2018-12-14 01:32:39 +00:00
2018-02-18 16:32:34 +00:00
2018-02-25 20:22:30 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:35:29 +00:00
2018-12-14 05:13:52 +00:00
2018-03-25 19:33:31 +00:00
2018-12-14 03:20:37 +00:00
2018-05-07 17:20:22 +00:00
2019-01-08 03:33:49 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:33:31 +00:00
2018-03-22 18:56:33 +00:00
2018-09-14 13:45:26 +00:00
2018-12-15 11:02:18 +00:00
2018-02-25 20:22:30 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:22:30 +00:00
2018-12-14 01:04:36 +00:00
2018-12-14 02:49:38 +00:00
2018-09-14 13:45:26 +00:00
2019-01-07 07:56:50 +00:00
2018-09-23 15:33:24 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:13:52 +00:00
2018-12-13 01:26:24 +00:00
2018-09-28 21:51:24 +00:00
2019-01-06 16:23:49 +00:00
2018-08-11 17:42:24 +00:00
2018-08-17 01:51:36 +00:00
2018-12-28 13:42:50 +00:00
2018-05-10 17:58:22 +00:00
2018-12-30 05:06:48 +00:00
2018-03-25 19:35:29 +00:00
2018-12-14 02:49:38 +00:00
2018-12-14 03:36:38 +00:00
2018-05-05 09:45:22 +00:00
2018-12-24 13:29:50 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-12-17 04:52:00 +00:00
2019-01-07 21:09:49 +00:00
2019-01-04 21:12:50 +00:00
2018-12-20 02:42:48 +00:00
2018-12-20 19:01:48 +00:00
2018-04-03 15:00:31 +00:00
2018-12-18 16:58:48 +00:00
2019-01-07 13:59:51 +00:00
2018-12-20 02:49:48 +00:00
2018-12-12 03:08:23 +00:00
2018-12-11 04:45:23 +00:00
2018-12-19 07:26:47 +00:00
2018-12-12 03:02:24 +00:00
2018-09-24 15:22:24 +00:00
2018-09-24 15:09:26 +00:00
2018-12-13 01:26:24 +00:00
2018-09-24 15:09:26 +00:00
2018-02-11 17:09:31 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:16:52 +00:00
2019-01-08 02:51:50 +00:00
2019-01-03 18:11:52 +00:00
2018-08-30 09:01:25 +00:00
2019-01-07 08:02:48 +00:00
2018-03-18 14:23:33 +00:00
2018-12-20 02:19:48 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 06:04:55 +00:00
2018-08-17 01:51:36 +00:00
2019-01-04 21:12:50 +00:00
2018-08-02 15:13:27 +00:00
2019-01-08 03:11:50 +00:00
2018-02-09 16:55:31 +00:00
2018-12-14 03:41:37 +00:00
2018-08-17 01:51:36 +00:00
2018-09-03 21:44:24 +00:00
2019-01-08 03:33:49 +00:00
2018-08-17 01:51:36 +00:00
2018-12-20 00:59:47 +00:00