Make WordPress Core

Ticket #28732: 28732.diff

File 28732.diff, 4.7 KB (added by polevaultweb, 10 years ago)
  • src/wp-admin/themes.php

     
    221221        <?php } else { ?>
    222222                <div class="theme-screenshot blank"></div>
    223223        <?php } ?>
    224         <span class="more-details" id="<?php echo $aria_action; ?>"><?php _e( 'Theme Details' ); ?></span>
     224        <a class="more-details" id="<?php echo $aria_action; ?>"><?php _e( 'Theme Details' ); ?></a>
    225225        <div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div>
    226226
    227227        <?php if ( $theme['active'] ) { ?>
     
    323323        <# } else { #>
    324324                <div class="theme-screenshot blank"></div>
    325325        <# } #>
    326         <span class="more-details" id="{{ data.id }}-action"><?php _e( 'Theme Details' ); ?></span>
     326        <a class="more-details" id="{{ data.id }}-action"><?php _e( 'Theme Details' ); ?></a>
    327327        <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
    328328
    329329        <# if ( data.active ) { #>
     
    359359        <div class="theme-backdrop"></div>
    360360        <div class="theme-wrap">
    361361                <div class="theme-header">
    362                         <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
    363                         <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
    364                         <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>
     362                        <a class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></a>
     363                        <a class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></a>
     364                        <a class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></a>
    365365                </div>
    366366                <div class="theme-about">
    367367                        <div class="theme-screenshots">
  • src/wp-includes/js/customize-loader.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    4747
    4848                                // Store a reference to the link that opened the Customizer.
    4949                                Loader.link = $(this);
     50
     51                                // If a user ctrl, cmd or middle mouse clicks then open customizer
     52                                // in new tab instead of showing the modal
     53                                if ( event.metaKey || event.ctrlKey || 2 === event.which ) {
     54                                        var href = Loader.link.attr('href')
     55                                        window.open( href, '_blank' );
     56                                        return;
     57                                }
     58
    5059                                // Load the theme.
    5160                                Loader.open( Loader.link.attr('href') );
    5261                        });
  • src/wp-admin/js/theme.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    443443                // Set focused theme to current element
    444444                themes.focusedTheme = this.$el;
    445445
     446                // If a user ctrl, cmd or middle mouse clicks then open theme details
     447                // in new tab instead of showing the modal
     448                if ( event.metaKey || event.ctrlKey || 2 === event.which ) {
     449                        var href = themes.router.baseUrl( themes.router.themePath + self.model.cid );
     450                        window.open( href, '_blank' );
     451                        return;
     452                }
     453
    446454                this.trigger( 'theme:expand', self.model.cid );
    447455        },
    448456
  • src/wp-admin/includes/theme.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    516516                <div class="theme-backdrop"></div>
    517517                <div class="theme-wrap">
    518518                        <div class="theme-header">
    519                                 <button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
    520                                 <button type="button" class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
    521                                 <button type="button" class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>
     519                                <a class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></a>
     520                                <a class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></a>
     521                                <a  class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></a>
    522522                        </div>
    523523                        <div class="theme-about">
    524524                                <div class="theme-screenshots">