• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aaronjorbin / develop.wordpress / 4621
100%

Build:
DEFAULT BRANCH: master
Ran 01 Aug 2017 05:48PM UTC
Jobs 1
Files 642
Run time 34s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4621

push

travis-ci

boonebgorges
Use a more reliable method for generating `get_terms()` cache key.

Previously, the cache key included a serialization of `list_terms_exclusions`
callbacks, to ensure that the cache was differentiated properly for different
uses of the `list_terms_exclusions` filter. This strategy was flawed in a
couple of ways: serialization doesn't work equally well for all callable types;
the serialization required reaching into the `$wp_filter` global; serializing
the callback itself didn't properly account for the possibility that the
callback might return different values in different contexts; the cache key
didn't account for other filters that similarly affect the cached values, such
as `terms_clauses`.

We skirt all these issues by concatenating the cache key using the SQL query
string, which will reflect all filters applied earlier in `get_terms()`.

Props boonebgorges, wonderboymusic.
Fixes #21267.

git-svn-id: https://develop.svn.wordpress.org/trunk@35120 602fd350-edb4-49c9-b593-d223f7449a82

15673 of 34180 branches covered (45.85%)

47039 of 77169 relevant lines covered (60.96%)

586.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4621.1 (WP_TRAVISCI=travis:js) 01 Aug 2017 05:48PM UTC 0
60.96
Travis Job 4621.1
Source Files on build 4621
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4621
  • 0d28b59c on github
  • Prev Build on master (#4619)
  • Next Build on master (#4772)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc