WordPress.org

Make WordPress Core

Changeset 31607


Ignore:
Timestamp:
03/03/2015 09:52:35 PM (3 years ago)
Author:
helen
Message:

Remove the once-placeholder-esque "tag hint", which has not worked in quite some time.

It's not particularly useful, and adds visual noise when in place.

props welcher.
fixes #31485.

Location:
trunk/src/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r31573 r31607  
    10641064------------------------------------------------------------------------------*/
    10651065
    1066 .tagsdiv {
    1067     margin-top: -8px;
    1068 }
    1069 
    1070 #poststuff .taghint {
    1071     color: #aaa;
    1072     margin: 15px 0 -24px 12px;
    1073 }
    1074 
    10751066#poststuff .tagsdiv .howto {
    10761067    margin: 0 0 6px 0;
     
    10951086#post-body-content .tagsdiv .the-tags {
    10961087    margin: 0 5px;
    1097 }
    1098 
    1099 /* tag hints */
    1100 .taghint {
    1101     color: #aaa;
    1102     margin: -17px 0 0 7px;
    1103     visibility: hidden;
    1104 }
    1105 
    1106 input.newtag ~ div.taghint {
    1107     visibility: visible;
    1108 }
    1109 
    1110 input.newtag:focus ~ div.taghint {
    1111     visibility: hidden;
    11121088}
    11131089
  • trunk/src/wp-admin/css/press-this.css

    r31598 r31607  
    259259}
    260260
    261 .screen-reader-text,
    262 .taghint {
     261.screen-reader-text {
    263262    position: absolute;
    264263    margin: -1px;
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r31601 r31607  
    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="" />
  • trunk/src/wp-admin/includes/meta-boxes.php

    r31550 r31607  
    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>
  • trunk/src/wp-admin/js/tags-box.js

    r31566 r31607  
    159159            });
    160160
    161             $('div.taghint', ajaxtag).click(function(){
    162                 $(this).css('visibility', 'hidden').parent().siblings('.newtag').focus();
    163             });
    164 
    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){
     161            $('input.newtag', ajaxtag).keyup(function(e){
    171162                if ( 13 == e.which ) {
    172163                    tagBox.flushTags( $(this).closest('.tagsdiv') );
Note: See TracChangeset for help on using the changeset viewer.