Changes between Version 1 and Version 2 of Ticket #20014, comment 4
- Timestamp:
- 05/13/2019 10:37:08 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20014, comment 4
v1 v2 1 1 Pursuant to the discussion with Azaozz and Nacin on 2/18 in #wordpress-ui here's my quick draft on a cookie-based detection of touch interfaces ... 2 2 3 ` 4 3 {{{ 5 4 function wp_check_for_touch_ui(){ 6 5 if( isset( $_COOKIE['wp_ui_touch'] ) && ( 'true' == $_COOKIE['wp_ui_touch'] ) ) return; … … 24 23 // this will catch future touch events if they somehow make it past the login page without touching ... 25 24 add_action( 'admin_footer', 'wp_check_for_touch_ui' ); 26 27 ` 25 }}} 28 26 29 27 It'll normally trigger on the login page, setting the cookie to be tested against either directly or via a function or whatever y'all think is best, for including the additional JS and such to make drag/drop and other features work on touch-based interfaces.