Ticket #21324: 21324.11.diff

File 21324.11.diff, 5.5 KB (added by lessbloat, 7 months ago)
  • wp-login.php

     
    152152        </script> 
    153153        <?php endif; ?> 
    154154 
     155        <script type="text/javascript"> 
     156        var i, links = document.getElementsByTagName('a'); 
     157        for ( i = 0; i < links.length; i++ ) { 
     158                // Blur accessibility link background color onclick 
     159                links[i].onclick = function() { this.blur(); } 
     160        } 
     161        </script> 
     162 
    155163        <?php do_action('login_footer'); ?> 
    156164        <div class="clear"></div> 
    157165        </body> 
  • wp-includes/css/editor.css

     
    10191019        float: left; 
    10201020} 
    10211021 
     1022.wp-switch-editor:active { 
     1023        background-color: #f1f1f1; 
     1024} 
     1025 
    10221026.wp-switch-editor:hover { 
    10231027        text-decoration: none !important; 
    10241028} 
  • wp-admin/js/customize-controls.js

     
    680680                        if ( 13 === e.which ) // Enter 
    681681                                e.preventDefault(); 
    682682                }); 
     683                 
     684                // Blur accessibility link background color onclick 
     685                $(document).on('click.wp-accessibility-blur', 'a', function() { 
     686                        $(this).blur(); 
     687                }); 
    683688 
    684689                // Initialize Previewer 
    685690                previewer = new api.Previewer({ 
  • wp-admin/js/post.js

     
    124124        init : function() { 
    125125                var t = this, ajaxtag = $('div.ajaxtag'); 
    126126 
    127             $('.tagsdiv').each( function() { 
    128                 tagBox.quickClicks(this); 
    129             }); 
     127                $('.tagsdiv').each( function() { 
     128                        tagBox.quickClicks(this); 
     129                }); 
    130130 
    131131                $('input.tagadd', ajaxtag).click(function(){ 
    132132                        t.flushTags( $(this).closest('.tagsdiv') ); 
     
    138138 
    139139                $('input.newtag', ajaxtag).blur(function() { 
    140140                        if ( this.value == '' ) 
    141                     $(this).parent().siblings('.taghint').css('visibility', ''); 
    142             }).focus(function(){ 
     141                                $(this).parent().siblings('.taghint').css('visibility', ''); 
     142                }).focus(function(){ 
    143143                        $(this).parent().siblings('.taghint').css('visibility', 'hidden'); 
    144144                }).keyup(function(e){ 
    145145                        if ( 13 == e.which ) { 
     
    156156                        $(this).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + tax, { delay: 500, minchars: 2, multiple: true, multipleSep: postL10n.comma + ' ' } ); 
    157157                }); 
    158158 
    159             // save tags on post save/publish 
    160             $('#post').submit(function(){ 
     159                // save tags on post save/publish 
     160                $('#post').submit(function(){ 
    161161                        $('div.tagsdiv').each( function() { 
    162                         tagBox.flushTags(this, false, 1); 
     162                                tagBox.flushTags(this, false, 1); 
    163163                        }); 
    164164                }); 
    165165 
    166166                // tag cloud 
    167167                $('a.tagcloud-link').click(function(){ 
    168                         tagBox.get( $(this).attr('id') ); 
    169                         $(this).unbind().click(function(){ 
    170                                 $(this).siblings('.the-tagcloud').toggle(); 
    171                                 return false; 
    172                         }); 
     168                        if ( ! $('.the-tagcloud').length ) 
     169                                tagBox.get( $(this).attr('id') ); 
     170                        $(this).siblings('.the-tagcloud').toggle(); 
    173171                        return false; 
    174172                }); 
    175173        } 
     
    277275                taxonomyParts = this_id.split('-'); 
    278276                taxonomyParts.shift(); 
    279277                taxonomy = taxonomyParts.join('-'); 
    280                 settingName = taxonomy + '_tab'; 
    281                 if ( taxonomy == 'category' ) 
    282                         settingName = 'cats'; 
     278                settingName = taxonomy + '_tab'; 
     279                if ( taxonomy == 'category' ) 
     280                        settingName = 'cats'; 
    283281 
    284282                // TODO: move to jQuery 1.3+, support for multiple hierarchical taxonomies, see wp-lists.js 
    285283                $('a', '#' + taxonomy + '-tabs').click( function(){ 
     
    602600        } 
    603601 
    604602        wptitlehint(); 
     603         
     604        // Blur accessibility link background color onclick 
     605        $('.postbox .inside a').on('click', function() { 
     606                $(this).blur(); 
     607        }); 
    605608 
    606609        // resizable textarea#content 
    607610        (function() { 
  • wp-admin/css/colors-fresh.css

     
    186186        color: #464646; 
    187187} 
    188188 
     189.wrap .add-new-h2:focus { 
     190        background: #c7e7fd; 
     191} 
     192 
    189193.wrap .add-new-h2, 
    190194.wrap .add-new-h2:active { 
    191195        background: #f1f1f1; 
    192196} 
    193197 
    194 .wrap .add-new-h2:focus { 
    195         background: #c7e7fd; 
    196 } 
    197  
    198198.subtitle { 
    199199        color: #777; 
    200200} 
  • wp-admin/css/wp-admin.css

     
    694694input[type="tel"]:focus, 
    695695input[type="url"]:focus, 
    696696select:focus { 
    697         border-color: #a1a1a1; 
     697        border-color: #aaa; 
    698698        -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.1); 
    699699        box-shadow: 1px 1px 2px rgba(0,0,0,0.1); 
    700700} 
     
    45224522        overflow: hidden; 
    45234523} 
    45244524 
     4525.available-theme a.screenshot:focus { 
     4526        border-color: #777; 
     4527} 
     4528 
    45254529#current-theme .theme-info li, 
    45264530.theme-options li, 
    45274531.available-theme .action-links li { 
     
    64796483        width: 326px; 
    64806484        height: 67px; 
    64816485        text-indent: -9999px; 
     6486        outline: none; 
    64826487        overflow: hidden; 
    64836488        padding-bottom: 15px; 
    64846489        display: block; 
  • wp-admin/css/colors-classic.css

     
    793793        color: #888; 
    794794} 
    795795 
     796.wp-admin.wp-editor-wrap .wp-switch-editor:active { 
     797        background-color: #f5fafd; 
     798} 
     799 
    796800.wp-admin .wp-editor-wrap.tmce-active .switch-tmce, 
    797801.wp-admin .wp-editor-wrap.html-active .switch-html { 
    798802        background: #f7fcfe;