Make WordPress Core


Ignore:
Timestamp:
05/04/2009 12:13:44 PM (18 years ago)
Author:
azaozz
Message:

Make tags accessible without js on the edit screen

File:
1 edited

Legend:

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

    r11159 r11172  
    275275?>
    276276<div class="tagsdiv" id="<?php echo $tax_name; ?>">
    277         <p class="jaxtag">
     277        <div class="jaxtag">
     278        <div class="nojs-tags hide-if-js">
     279        <p><?php _e('Add or remove tags'); ?></p>
     280        <textarea name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]"><?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?></textarea></div>
     281
     282        <span class="ajaxtag hide-if-no-js">
    278283                <label class="hidden" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
    279                 <input type="hidden" name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" value="<?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?>" />
    280 
    281         <span class="ajaxtag">
    282284                <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="<?php _ea('Add new tag'); ?>" />
    283285                <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" />
    284         </span></p>
     286        </span></div>
    285287        <p class="howto"><?php echo $helps; ?></p>
    286288        <div class="tagchecklist"></div>
Note: See TracChangeset for help on using the changeset viewer.