WordPress.org

WordPress build repository browser

Changeset 40747


Ignore:
Timestamp:
06/12/17 14:09:43 (2 months ago)
Author:
afercia
Message:

Accessibility: Avoid a keyboard trap on the permalink custom structure setting.

Using the focus event on the permalink custom structure field made impossible
to navigate through all the form fields using only the keyboard without actually
selecting the custom structure setting. Instead, using click and input preserves
the original functionality when using any kind of pointing or input device.

Also changes attr() to prop() as recommended for a checked` property.

Fixes #40982.

Built from https://develop.svn.wordpress.org/trunk@40897

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/options.php

    r40449 r40747  
    101101        jQuery('#permalink_structure').val( this.value ); 
    102102    }); 
    103     jQuery('#permalink_structure').focus(function() { 
    104         jQuery("#custom_selection").attr('checked', 'checked'); 
     103    jQuery( '#permalink_structure' ).on( 'click input', function() { 
     104        jQuery( '#custom_selection' ).prop( 'checked', true ); 
    105105    }); 
    106106}); 
  • trunk/wp-includes/version.php

    r40746 r40747  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '4.9-alpha-40896'; 
     7$wp_version = '4.9-alpha-40897'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.