WordPress.org

Make WordPress Core

Changeset 29803


Ignore:
Timestamp:
10/02/2014 12:28:45 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Add classes to form containers on taxonomy screens.

props jarednova.
fixes #28196.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r27029 r29803  
    8181<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
    8282    <table class="form-table">
    83         <tr class="form-field form-required">
     83        <tr class="form-field form-required term-name-wrap">
    8484            <th scope="row"><label for="name"><?php _ex('Name', 'Taxonomy Name'); ?></label></th>
    8585            <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />
     
    8787        </tr>
    8888<?php if ( !global_terms_enabled() ) { ?>
    89         <tr class="form-field">
     89        <tr class="form-field term-slug-wrap">
    9090            <th scope="row"><label for="slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label></th>
    9191            <?php
     
    103103<?php } ?>
    104104<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    105         <tr class="form-field">
     105        <tr class="form-field term-parent-wrap">
    106106            <th scope="row"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th>
    107107            <td>
     
    113113        </tr>
    114114<?php endif; // is_taxonomy_hierarchical() ?>
    115         <tr class="form-field">
     115        <tr class="form-field term-description-wrap">
    116116            <th scope="row"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></th>
    117117            <td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $tag->description; // textarea_escaped ?></textarea><br />
  • trunk/src/wp-admin/edit-tags.php

    r29782 r29803  
    448448<?php wp_nonce_field('add-tag', '_wpnonce_add-tag'); ?>
    449449
    450 <div class="form-field form-required">
     450<div class="form-field form-required term-name-wrap">
    451451    <label for="tag-name"><?php _ex('Name', 'Taxonomy Name'); ?></label>
    452452    <input name="tag-name" id="tag-name" type="text" value="" size="40" aria-required="true" />
     
    454454</div>
    455455<?php if ( ! global_terms_enabled() ) : ?>
    456 <div class="form-field">
     456<div class="form-field term-slug-wrap">
    457457    <label for="tag-slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label>
    458458    <input name="slug" id="tag-slug" type="text" value="" size="40" />
     
    461461<?php endif; // global_terms_enabled() ?>
    462462<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    463 <div class="form-field">
     463<div class="form-field term-parent-wrap">
    464464    <label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label>
    465465    <?php
     
    501501</div>
    502502<?php endif; // is_taxonomy_hierarchical() ?>
    503 <div class="form-field">
     503<div class="form-field term-description-wrap">
    504504    <label for="tag-description"><?php _ex('Description', 'Taxonomy Description'); ?></label>
    505505    <textarea name="description" id="tag-description" rows="5" cols="40"></textarea>
Note: See TracChangeset for help on using the changeset viewer.