Make WordPress Core


Ignore:
Timestamp:
01/11/2016 10:53:10 PM (9 years ago)
Author:
afercia
Message:

Accessibility: Remove title attributes from the General Settings screen.

Date and time formats are now displayed in plain text and available for all
users. Also, lines up them with the "custom" date and time format fields to
help reinforce what these fields do.

Props afercia, perezlabs.
Fixes #35064.

File:
1 edited

Legend:

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

    r35685 r36263  
    5252        $("input[name='date_format']").click(function(){
    5353            if ( "date_format_custom_radio" != $(this).attr("id") )
    54                 $( "input[name='date_format_custom']" ).val( $( this ).val() ).siblings( '.example' ).text( $( this ).parent( 'label' ).text() );
     54                $( "input[name='date_format_custom']" ).val( $( this ).val() ).siblings( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
    5555        });
    5656        $("input[name='date_format_custom']").focus(function(){
     
    6060        $("input[name='time_format']").click(function(){
    6161            if ( "time_format_custom_radio" != $(this).attr("id") )
    62                 $( "input[name='time_format_custom']" ).val( $( this ).val() ).siblings( '.example' ).text( $( this ).parent( 'label' ).text() );
     62                $( "input[name='time_format_custom']" ).val( $( this ).val() ).siblings( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
    6363        });
    6464        $("input[name='time_format_custom']").focus(function(){
Note: See TracChangeset for help on using the changeset viewer.