Twenty Fourteen: wp_is_mobile() shouldn't be used
|Reported by:||dimadin||Owned by:||lancewillett|
Since wp_is_mobile() checks current visitor, it should be used only on dynamic pages, how it was done in core before (used on admin pages only).
Although frontend is dynamic by default, when page cache is used it isn't. This can for example lead to situation where page view from mobile gets to cache which is then served to all visitors until cache is deleted/expires.
Change History (11)
3 years ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from new to closed