WordPress.org

Make WordPress Core

Ticket #21324: 21324.8.diff

File 21324.8.diff, 4.0 KB (added by SergeyBiryukov, 9 months ago)
  • wp-admin/css/colors-classic.css

     
    12681268        color: #999 
    12691269} 
    12701270 
     1271.wp-editor-wrap .wp-switch-editor:active { 
     1272        background-color: #f5fafd; 
     1273} 
     1274 
    12711275.wp-editor-wrap.tmce-active .switch-tmce, 
    12721276.wp-editor-wrap.html-active .switch-html { 
    12731277        background-color: #eff8ff; 
  • wp-admin/css/wp-admin.css

     
    63106310        width: 326px; 
    63116311        height: 67px; 
    63126312        text-indent: -9999px; 
     6313        outline: none; 
    63136314        overflow: hidden; 
    63146315        padding-bottom: 15px; 
    63156316        display: block; 
  • 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(){ 
     
    660658        } 
    661659 
    662660        wptitlehint(); 
     661 
     662        // Blur accessibility link background color onclick 
     663        $('.postbox .inside a').on('click', function() { 
     664                $(this).blur(); 
     665        }); 
    663666}); 
  • wp-includes/css/editor.css

     
    10841084        float: left; 
    10851085} 
    10861086 
     1087.wp-switch-editor:active { 
     1088        background-color: #f1f1f1; 
     1089} 
     1090 
    10871091.wp-switch-editor:hover { 
    10881092        text-decoration: none !important; 
    10891093} 
  • wp-login.php

     
    146146        </script> 
    147147        <?php endif; ?> 
    148148 
     149        <script type="text/javascript"> 
     150        var i, links = document.getElementsByTagName('a'); 
     151        for ( i = 0; i < links.length; i++ ) { 
     152                // Blur accessibility link background color onclick 
     153                links[i].onclick = function() { this.blur(); } 
     154        } 
     155        </script> 
     156 
    149157        <?php do_action('login_footer'); ?> 
    150158        <div class="clear"></div> 
    151159        </body>