Boone Gorges
499d1b74ba
Don't cache WP_Term objects in wp_get_object_cache().
...
The data stored in the cache should be raw database query results, not
`WP_Term` objects (which may be modified by plugins, and may contain additional
properties that shouldn't be cached).
If term relationships caches were handled in `wp_get_object_terms()` - where
a database query takes place - it would be straightforward to cache raw data.
See #34239 . Since, in fact, `get_the_terms()` caches the value it gets from
`wp_get_object_terms()`, we need a technique that allows us to get raw data
from a `WP_Term` object. Mirroring `WP_User`, we introduce a `data` property
on term objects, which `get_the_terms()` uses to fetch cacheable term info.
Fixes #34262 .
Built from https://develop.svn.wordpress.org/trunk@35032
git-svn-id: http://core.svn.wordpress.org/trunk@34997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-12 15:13:48 +00:00
..
2015-09-18 08:43:26 +00:00
2015-10-09 17:47:25 +00:00
2015-10-10 23:50:25 +00:00
2015-09-20 03:52:25 +00:00
2015-10-09 04:28:24 +00:00
2015-10-08 19:27:28 +00:00
2015-09-25 23:58:25 +00:00
2015-09-20 08:49:27 +00:00
2015-09-29 04:32:25 +00:00
2015-10-10 15:45:25 +00:00
2015-09-29 01:49:25 +00:00
2015-09-08 22:17:26 +00:00
2015-09-16 10:03:26 +00:00
2015-10-01 05:09:50 +00:00
2015-10-07 17:11:25 +00:00
2015-09-22 13:46:25 +00:00
2015-10-10 01:59:29 +00:00
2015-10-12 15:13:48 +00:00
2015-09-22 14:20:24 +00:00
2015-09-20 03:52:25 +00:00
2015-09-26 07:04:28 +00:00
2015-09-26 03:11:24 +00:00
2015-09-16 12:46:28 +00:00
2015-10-07 13:05:25 +00:00
2015-10-06 23:45:25 +00:00
2015-09-16 12:46:28 +00:00
2015-09-20 03:52:25 +00:00
2015-09-20 03:52:25 +00:00
2015-09-22 14:03:25 +00:00
2015-09-22 14:01:25 +00:00
2015-10-10 15:45:25 +00:00
2015-09-22 13:58:24 +00:00
2015-09-22 15:09:24 +00:00
2015-10-01 03:58:23 +00:00
2015-10-01 03:58:23 +00:00
2015-10-10 23:25:24 +00:00
2015-10-07 23:54:24 +00:00
2015-09-24 09:16:25 +00:00
2015-09-13 06:16:26 +00:00
2015-09-09 04:39:25 +00:00
2015-10-10 09:06:25 +00:00
2015-09-25 21:02:27 +00:00
2015-10-07 10:36:25 +00:00
2015-10-07 10:36:25 +00:00
2015-09-26 07:04:28 +00:00
2015-09-27 21:37:24 +00:00
2015-09-15 16:16:43 +00:00
2015-10-08 19:27:28 +00:00
2015-09-26 07:04:28 +00:00
2015-10-05 22:40:25 +00:00
2015-09-22 13:26:23 +00:00
2015-10-11 22:44:27 +00:00
2015-10-07 11:01:25 +00:00
2015-09-22 13:10:24 +00:00
2015-10-08 22:07:24 +00:00
2015-09-22 13:46:25 +00:00
2015-09-22 13:46:25 +00:00
2015-09-22 13:16:30 +00:00
2015-10-12 15:13:48 +00:00
2015-10-09 21:51:25 +00:00
2015-10-08 21:28:24 +00:00
2015-09-24 00:49:25 +00:00
2015-09-14 15:33:27 +00:00
2015-09-22 13:48:25 +00:00
2015-10-02 20:50:25 +00:00
2015-10-06 13:41:26 +00:00
2015-10-07 10:36:25 +00:00
2015-10-06 13:54:25 +00:00
2015-10-10 15:45:25 +00:00
2015-10-10 15:45:25 +00:00
2015-09-22 13:44:25 +00:00
2015-10-09 04:28:24 +00:00
2015-09-26 04:51:26 +00:00
2015-10-09 16:33:25 +00:00
2015-10-08 21:45:25 +00:00
2015-10-08 22:31:24 +00:00
2015-09-22 13:36:25 +00:00
2015-09-29 22:46:25 +00:00
2015-10-08 23:25:24 +00:00
2015-10-07 11:01:25 +00:00
2015-09-16 11:02:24 +00:00
2015-10-07 23:39:23 +00:00
2015-10-09 05:16:23 +00:00
2015-10-02 22:48:26 +00:00
2015-09-22 03:14:25 +00:00
2015-10-08 19:29:25 +00:00
2015-10-07 17:11:25 +00:00
2015-10-10 05:46:24 +00:00
2015-10-07 03:02:23 +00:00
2015-09-24 13:26:24 +00:00
2015-09-11 18:30:26 +00:00
2015-10-06 17:47:24 +00:00
2015-09-22 13:27:24 +00:00
2015-09-22 13:30:24 +00:00
2015-10-07 17:11:25 +00:00
2015-09-16 22:19:24 +00:00
2015-10-07 17:11:25 +00:00
2015-10-11 22:44:27 +00:00
2015-10-07 17:11:25 +00:00
2015-10-05 15:06:28 +00:00
2015-09-28 18:41:26 +00:00
2015-10-02 06:46:24 +00:00
2015-10-11 23:30:24 +00:00
2015-09-20 03:52:25 +00:00
2015-10-09 15:52:24 +00:00
2015-09-25 23:58:25 +00:00
2015-10-08 05:57:25 +00:00
2015-10-08 18:27:25 +00:00
2015-09-28 15:34:25 +00:00
2015-09-22 13:13:26 +00:00
2015-10-08 03:18:24 +00:00
2015-10-08 19:29:25 +00:00
2015-10-08 01:04:25 +00:00
2015-10-08 17:28:25 +00:00
2015-10-10 23:50:25 +00:00
2015-10-08 03:12:24 +00:00
2015-10-12 15:13:48 +00:00
2015-10-10 01:59:29 +00:00
2015-10-07 10:36:25 +00:00
2015-10-10 15:45:25 +00:00
2015-10-05 15:06:28 +00:00
2015-10-05 15:06:28 +00:00
2015-10-08 22:07:47 +00:00
2015-09-22 13:03:24 +00:00
2015-09-05 22:33:23 +00:00
2015-10-12 15:13:48 +00:00
2015-09-25 23:58:25 +00:00
2015-10-08 17:11:24 +00:00
2015-09-20 03:52:25 +00:00