Commit ed5d373
authored
Cast $blog_id to int in wp_cache_clear_cache() (#1054)
Third-party callers sometimes pass a non-integer (e.g. wp_cache_clear_cache('all', false)). The value flows to get_supercache_dir() -> get_blog_option(), a multisite-only function, fataling on single-site installs. Casting to int normalizes 'all'/false to 0, taking the single-site clearing path.
Fixes #1019.1 parent 1c6e7e2 commit ed5d373
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3089 | 3089 | | |
3090 | 3090 | | |
3091 | 3091 | | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
3092 | 3096 | | |
3093 | 3097 | | |
3094 | 3098 | | |
| |||
0 commit comments