4 | | Uploads: Remove an unnecessary static var from `wp_is_mobile()` to allow its direct and indirect use within unit tests. The static `$is_m |
5 | | obile` var was only used to avoid a handful of calls to `strpos()`, which are exceptionally fast and result in no measurable increase in |
6 | | processing time on each call to `wp_is_mobile()`. |
| 4 | Uploads: Remove an unnecessary static var from `wp_is_mobile()` to allow its direct and indirect use within unit tests. The static `$is_mobile` var was only used to avoid a handful of calls to `strpos()`, which are exceptionally fast and result in no measurable increase in processing time on each call to `wp_is_mobile()`. |