Make WordPress Core

Ticket #27521: 27521.diff

File 27521.diff, 2.5 KB (added by jorbin, 11 years ago)
  • src/wp-admin/css/themes.css

     
    4040        top: -3px;
    4141}
    4242
     43.theme-navigation a{
     44        text-decoration:none;
     45}
     46
    4347/* Position admin messages */
    4448.themes-php div.updated,
    4549.themes-php div.error {
  • src/wp-admin/js/theme.js

     
    269269        expand: function( event ) {
    270270                var self = this;
    271271
     272
    272273                event = event || window.event;
    273274
    274275                // 'enter' and 'space' keys expand the details view when a theme is :focused
     
    303304                        return this.touchDrag = false;
    304305                }
    305306
     307                if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) {
     308                        return;
     309                }
     310
    306311                event.preventDefault();
    307312
    308313                event = event || window.event;
     
    10851090                var $el = $( event.target ),
    10861091                        sort = $el.data( 'sort' );
    10871092
     1093                // links that trigger sort have a # as the href, we don't want to add that to the url
     1094                event.preventDefault();
     1095
    10881096                // Bail if this is already active
    10891097                if ( $el.hasClass( this.activeClass ) ) {
    10901098                        return;
  • src/wp-admin/theme-install.php

     
    114114
    115115        <div class="theme-navigation">
    116116                <span class="theme-count"></span>
    117                 <span class="theme-section current" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></span>
    118                 <span class="theme-section" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></span>
    119                 <span class="theme-section" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></span>
     117                <a class="theme-section current" href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a>
     118                <a class="theme-section" href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a>
     119                <a class="theme-section" href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a>
    120120                <div class="theme-top-filters">
    121121                        <!--<span class="theme-filter" data-filter="photoblogging">Photography</span>
    122122                        <span class="theme-filter" data-filter="responsive-layout">Responsive</span>-->
    123                         <span class="more-filters"><?php _e( 'Feature Filter' ); ?></span>
     123                        <a class="more-filters" href="#"><?php _e( 'Feature Filter' ); ?></a>
    124124                </div>
    125125                <div class="more-filters-container">
    126126                <?php