Make WordPress Core

Ticket #44966: 44966-rev3.diff

File 44966-rev3.diff, 1.5 KB (added by wbrubaker, 6 years ago)

Now with comment goodness

  • src/wp-admin/includes/meta-boxes.php

    diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php
    index 84a36a8acc..7822667499 100644
    a b function post_tags_meta_box( $post, $box ) { 
    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                <?php //Elements on their own lines and indented as a workaround to a browser/accessibility issue ?>
     515                <p>
     516                        <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="" />
     517                        <input type="button" class="button tagadd" value="<?php esc_attr_e( 'Add' ); ?>" />
     518                </p>
    516519        </div>
    517520        <p class="howto" id="new-tag-<?php echo $tax_name; ?>-desc"><?php echo $taxonomy->labels->separate_items_with_commas; ?></p>
    518521        <?php elseif ( empty( $terms_to_edit ) ) : ?>