Make WordPress Core

Changeset 30555


Ignore:
Timestamp:
11/24/2014 10:58:12 PM (10 years ago)
Author:
ocean90
Message:

Improve the focus style for review links in the plugin info modal.

props johnbillion.
fixes #30375.

File:
1 edited

Legend:

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

    r30505 r30555  
    464464                ?>
    465465                <div class="counter-container">
    466                     <a href="https://wordpress.org/support/view/plugin-reviews/<?php echo $api->slug; ?>?filter=<?php echo $key; ?>"
    467                        target="_blank"
    468                        title="<?php echo esc_attr( sprintf( _n( 'Click to see reviews that provided a rating of %d star', 'Click to see reviews that provided a rating of %d stars', $key ), $key ) ); ?>">
    469                         <span class="counter-label"><?php printf( _n( '%d star', '%d stars', $key ), $key ); ?></span>
    470                         <span class="counter-back">
    471                             <span class="counter-bar" style="width: <?php echo 92 * $_rating; ?>px;"></span>
    472                         </span>
    473                     </a>
     466                    <span class="counter-label"><a href="https://wordpress.org/support/view/plugin-reviews/<?php echo $api->slug; ?>?filter=<?php echo $key; ?>"
     467                        target="_blank"
     468                        title="<?php echo esc_attr( sprintf( _n( 'Click to see reviews that provided a rating of %d star', 'Click to see reviews that provided a rating of %d stars', $key ), $key ) ); ?>"><?php printf( _n( '%d star', '%d stars', $key ), $key ); ?></a></span>
     469                    <span class="counter-back">
     470                        <span class="counter-bar" style="width: <?php echo 92 * $_rating; ?>px;"></span>
     471                    </span>
    474472                    <span class="counter-count"><?php echo number_format_i18n( $ratecount ); ?></span>
    475473                </div>
Note: See TracChangeset for help on using the changeset viewer.