Make WordPress Core

Changeset 34760


Ignore:
Timestamp:
10/02/2015 04:15:12 AM (9 years ago)
Author:
wonderboymusic
Message:

Plugins: on the Install page, move the name of each plugin into the <h4> to accommodate screen readers.

Props afercia, ChrisMKindred.
Fixes #32400.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r34743 r34760  
    16191619}
    16201620
    1621 .plugin-icon img {
    1622     width: 128px;
    1623     height: 128px;
    1624 }
    1625 
    16261621.no-plugin-results {
    16271622    color: #999;
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r34383 r34760  
    493493        <div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>">
    494494            <div class="plugin-card-top">
    495                 <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox plugin-icon"><img src="<?php echo esc_attr( $plugin_icon_url ) ?>" /></a>
    496495                <div class="name column-name">
    497                     <h4><a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a></h4>
     496                    <h4>
     497                        <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox">
     498                        <?php echo $title; ?>
     499                        <img src="<?php echo esc_attr( $plugin_icon_url ) ?>" class="plugin-icon" alt="">
     500                        </a>
     501                    </h4>
    498502                </div>
    499503                <div class="action-links">
Note: See TracChangeset for help on using the changeset viewer.