Make WordPress Core

Ticket #44966: 44966.2.diff

File 44966.2.diff, 1.8 KB (added by ryelle, 6 years ago)

This approach removes the p tag & adds CSS to fix the display differences. I've tested visually in Chrome/Safari, and Safari + VoiceOver.

  • src/wp-admin/css/edit.css

     
    10951095------------------------------------------------------------------------------*/
    10961096
    10971097#poststuff .tagsdiv .howto {
    1098         margin: 0 0 6px 0;
     1098        margin: 1em 0 6px 0;
    10991099}
    11001100
     1101#poststuff .tagsdiv .ajaxtag {
     1102        margin-top: 1em;
     1103}
     1104
    11011105.ajaxtag .newtag {
    11021106        position: relative;
    11031107}
  • src/wp-admin/includes/meta-boxes.php

     
    511511        <?php if ( $user_can_assign_terms ) : ?>
    512512        <div class="ajaxtag hide-if-no-js">
    513513                <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_new_item; ?></label>
    514                 <p><input data-wp-taxonomy="<?php echo $tax_name; ?>" type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" aria-describedby="new-tag-<?php echo $tax_name; ?>-desc" value="" />
    515                 <input type="button" class="button tagadd" value="<?php esc_attr_e( 'Add' ); ?>" /></p>
     514                <input data-wp-taxonomy="<?php echo $tax_name; ?>" type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" aria-describedby="new-tag-<?php echo $tax_name; ?>-desc" value="" />
     515                <input type="button" class="button tagadd" value="<?php esc_attr_e( 'Add' ); ?>" />
    516516        </div>
    517517        <p class="howto" id="new-tag-<?php echo $tax_name; ?>-desc"><?php echo $taxonomy->labels->separate_items_with_commas; ?></p>
    518518        <?php elseif ( empty( $terms_to_edit ) ) : ?>