Make WordPress Core


Ignore:
Timestamp:
04/03/2015 02:31:11 AM (10 years ago)
Author:
azaozz
Message:

Accessibility improvements for Themes screen: fix keyboard events and callbacks for the Search field, increase trigger timeout a bit, improve Esc. key handling.
Props joedolson, adamsilverstein, afercia, DrewAPicture. Fixes #26600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-install.php

    r31704 r31994  
    4545    'l10n' => array(
    4646        'addNew' => __( 'Add New Theme' ),
    47         'search'  => __( 'Search Themes' ),
     47        'search' => __( 'Search Themes' ),
    4848        'searchPlaceholder' => __( 'Search themes...' ), // placeholder (no ellipsis)
    4949        'upload' => __( 'Upload Theme' ),
    5050        'back'   => __( 'Back' ),
    51         'error'  => __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' )
     51        'error'  => __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ),
     52        'themesFound'   => __( 'Number of Themes found: %d' ),
     53        'noThemesFound' => __( 'No themes found. Try a different search.' ),
    5254    ),
    5355    'installedThemes' => array_keys( $installed_themes ),
     
    7173$help_overview =
    7274    '<p>' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'https://wordpress.org/themes/') . '</p>' .
    73     '<p>' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Popular, or Latest. When you find a theme you like, you can preview it or install it.') . '</p>' .
     75    '<p>' . __( 'You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter.' ) . ' <span id="live-search-desc">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
     76    '<p>' . __( 'Alternately, you can browse the themes that are Featured, Popular, or Latest. When you find a theme you like, you can preview it or install it.' ) . '</p>' .
    7477    '<p>' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&#8217;s folder via FTP into your <code>/wp-content/themes</code> directory.') . '</p>';
    7578
     
    167170        </div>
    168171    </div>
    169     <div class="theme-browser content-filterable" aria-live="polite">
    170         <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    171     </div>
     172    <div class="theme-browser content-filterable"></div>
    172173    <div class="theme-install-overlay wp-full-overlay expanded"></div>
     174
     175    <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    173176    <span class="spinner"></span>
    174177
Note: See TracChangeset for help on using the changeset viewer.