David Baumwald
af33442c3a
Administration: Guard against false transient key in get_cached_events().
...
Inside `WP_Community_Events::get_cached_events()`, `WP_Community_Events::get_events_transient_key()` is used to retrieve the transient key name, based on the user's location. However, the transient key can potentially return `false`, resulting in a call to `get_site_transient()` with the `$key` being `false`.
This change first attempts to evaluate and guard against a `false` return from `WP_Community_Events::get_events_transient_key()`. The result is an early `false` return from `WP_Community_Events::get_cached_events()`.
Props malthert, rafiahmedd, audrasjb, costdev.
Fixes #55888 .
git-svn-id: https://develop.svn.wordpress.org/trunk@54338 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-27 18:55:49 +00:00
..
2022-09-20 04:00:35 +00:00
2022-05-10 16:43:44 +00:00
2022-09-27 18:55:49 +00:00
2022-09-20 11:55:21 +00:00
2022-09-20 02:49:25 +00:00
2020-02-06 06:31:22 +00:00
2021-11-03 17:22:55 +00:00
2022-09-27 06:10:42 +00:00
2022-05-07 16:19:53 +00:00
2021-06-01 11:29:36 +00:00
2020-02-06 06:31:22 +00:00
2022-04-04 18:37:24 +00:00
2022-03-02 14:58:09 +00:00
2022-04-04 18:41:13 +00:00
2022-01-27 22:16:00 +00:00
2022-08-04 14:50:27 +00:00
2022-03-22 16:23:32 +00:00
2022-01-04 18:33:42 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2022-03-29 19:07:15 +00:00
2022-09-02 06:49:17 +00:00
2022-04-11 11:40:38 +00:00
2022-09-06 16:16:07 +00:00
2022-05-29 15:33:12 +00:00
2022-03-22 16:23:32 +00:00
2022-09-20 02:49:25 +00:00
2022-09-20 02:49:25 +00:00
2022-05-29 15:33:12 +00:00
2022-04-14 14:44:42 +00:00
2022-04-14 14:44:42 +00:00
2022-04-11 11:40:38 +00:00
2022-04-11 11:40:38 +00:00
2021-07-22 13:51:58 +00:00
2021-12-10 20:28:27 +00:00
2022-04-20 11:17:05 +00:00
2022-09-27 10:35:08 +00:00
2021-07-22 13:51:58 +00:00
2021-07-22 13:51:58 +00:00
2020-07-05 15:20:16 +00:00
2021-07-27 19:00:54 +00:00
2021-12-12 14:50:18 +00:00
2021-12-12 14:50:18 +00:00
2021-07-22 13:51:58 +00:00
2021-03-07 12:30:38 +00:00
2022-03-22 16:23:32 +00:00
2022-04-07 12:52:32 +00:00
2022-09-15 12:18:30 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2021-07-22 13:51:58 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2022-09-20 08:17:22 +00:00
2022-09-26 21:42:12 +00:00
2021-07-22 13:51:58 +00:00
2022-03-28 10:54:49 +00:00
2022-09-20 01:37:59 +00:00
2019-08-16 00:38:42 +00:00
2021-07-22 13:51:58 +00:00
2022-09-09 08:14:43 +00:00
2022-04-12 13:41:44 +00:00
2022-09-02 06:56:12 +00:00
2021-07-22 13:51:58 +00:00
2022-09-09 08:14:43 +00:00
2022-07-22 11:31:27 +00:00
2022-03-22 16:23:32 +00:00
2022-08-30 15:14:26 +00:00
2020-05-16 18:40:52 +00:00
2022-03-22 16:23:32 +00:00
2020-02-06 06:31:22 +00:00
2022-04-11 11:40:38 +00:00
2021-07-22 13:51:58 +00:00
2020-02-06 06:31:22 +00:00
2022-01-07 16:45:24 +00:00
2022-09-19 23:53:09 +00:00
2022-09-15 12:18:30 +00:00
2021-11-01 22:35:43 +00:00
2022-08-28 19:15:37 +00:00
2022-06-01 18:12:25 +00:00
2022-07-22 11:31:27 +00:00
2022-09-20 21:12:39 +00:00
2022-07-06 19:44:43 +00:00
2021-07-22 13:51:58 +00:00
2022-08-05 06:10:04 +00:00
2021-07-22 13:51:58 +00:00
2020-02-06 06:31:22 +00:00
2022-06-01 18:12:25 +00:00
2022-06-29 13:37:38 +00:00
2022-07-21 19:30:21 +00:00
2022-04-08 17:38:55 +00:00
2022-07-05 00:23:29 +00:00
2022-04-07 13:38:08 +00:00
2021-09-09 21:39:39 +00:00
2022-03-22 19:57:20 +00:00