Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33704, comment 8


Ignore:
Timestamp:
08/31/2016 06:40:28 PM (8 years ago)
Author:
akibjorklund
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33704, comment 8

    initial v1  
    1  [attachment:33704-focus.diff] handles autofocus-related usage of `wp_is_mobile()`. Turns out WordPress already has a mechanism for setting focus: you just add a class `wp-initial-focus` to an element. This was not used anywere. So I just tweaked that to only fire when `wpResponsive` is not active. Plus, on install.php, where common.js is not available, tested against the viewport width instead.
     1 [attachment:33704-focus.diff] handles autofocus-related usage of `wp_is_mobile()`. Turns out WordPress already has a mechanism for setting focus: you just add a class `wp-initial-focus` to an element. This was not used anywhere. So I just tweaked that to only fire when `wpResponsive` is not active. Plus, on install.php, where common.js is not available, tested against the viewport width instead.