Make WordPress Core

Ticket #31485: 31485.3.diff

File 31485.3.diff, 3.4 KB (added by welcher, 8 years ago)

Removed unintended changes in patch

  • wp-admin/css/edit.css

     
    10631063  13.0 - Tags
    10641064------------------------------------------------------------------------------*/
    10651065
    1066 .tagsdiv {
    1067         margin-top: -8px;
    1068 }
    10691066
    1070 #poststuff .taghint {
    1071         color: #aaa;
    1072         margin: 15px 0 -24px 12px;
    1073 }
    1074 
    10751067#poststuff .tagsdiv .howto {
    10761068        margin: 0 0 6px 0;
    10771069}
     
    10961088        margin: 0 5px;
    10971089}
    10981090
    1099 /* tag hints */
    1100 .taghint {
    1101         color: #aaa;
    1102         margin: -17px 0 0 7px;
    1103         visibility: hidden;
    1104 }
    11051091
    1106 input.newtag ~ div.taghint {
    1107         visibility: visible;
    1108 }
    1109 
    1110 input.newtag:focus ~ div.taghint {
    1111         visibility: hidden;
    1112 }
    1113 
    11141092p.popular-tags {
    11151093        border: none;
    11161094        line-height: 2em;
  • wp-admin/css/press-this.css

     
    258258        display: none;
    259259}
    260260
    261 .screen-reader-text,
    262 .taghint {
     261.screen-reader-text {
    263262        position: absolute;
    264263        margin: -1px;
    265264        padding: 0;
  • wp-admin/includes/class-wp-press-this.php

     
    644644                                ?>
    645645                                <div class="ajaxtag hide-if-no-js">
    646646                                        <label class="screen-reader-text" for="new-tag-post_tag"><?php _e( 'Tags' ); ?></label>
    647                                         <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div>
    648647                                        <p>
    649648                                                <input type="text" id="new-tag-post_tag" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
    650649                                                <button type="button" class="button tagadd"><?php _e( 'Add' ); ?></button>
  • wp-admin/includes/meta-boxes.php

     
    418418        <?php if ( $user_can_assign_terms ) : ?>
    419419        <div class="ajaxtag hide-if-no-js">
    420420                <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
    421                 <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div>
    422421                <p><input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
    423422                <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" /></p>
    424423        </div>
  • wp-admin/js/tags-box.js

     
    158158                                t.flushTags( $(this).closest('.tagsdiv') );
    159159                        });
    160160
    161                         $('div.taghint', ajaxtag).click(function(){
    162                                 $(this).css('visibility', 'hidden').parent().siblings('.newtag').focus();
    163                         });
    164161
    165                         $('input.newtag', ajaxtag).blur(function() {
    166                                 if ( '' === this.value )
    167                                         $(this).parent().siblings('.taghint').css('visibility', '');
    168                         }).focus(function(){
    169                                 $(this).parent().siblings('.taghint').css('visibility', 'hidden');
    170                         }).keyup(function(e){
     162                        $('input.newtag', ajaxtag).keyup(function(e){
    171163                                if ( 13 == e.which ) {
    172164                                        tagBox.flushTags( $(this).closest('.tagsdiv') );
    173165                                        return false;