Make WordPress Core


Ignore:
Timestamp:
01/10/2009 03:10:06 PM (15 years ago)
Author:
azaozz
Message:

Fix tags postboxes when no js

File:
1 edited

Legend:

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

    r10222 r10345  
    267267    $tax_name = substr($box['id'], 8);
    268268    $taxonomy = get_taxonomy($tax_name);
    269     if ( isset($taxonomy->helps) )
    270         $helps = attribute_escape($taxonomy->helps);
    271     else
    272         $helps = '';
     269    $helps = isset($taxonomy->helps) ? attribute_escape($taxonomy->helps) : __('Separate tags with commas.');
    273270?>
    274271<div class="tagsdiv" id="<?php echo $tax_name; ?>">
     
    277274        <input type="hidden" name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" value="<?php echo get_terms_to_edit( $post->ID, $tax_name ); ?>" />
    278275     
    279     <span class="ajaxtag" style="display:none;">
     276    <span class="ajaxtag">
    280277        <input type="text" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _e('Add new tag'); ?>" />
    281278        <input type="button" class="button tagadd" value="<?php _e('Add'); ?>" tabindex="3" />
    282279    </span>
    283     <?php echo $helps ? "<div class='howto'>$helps</div>" : ''; ?>
     280    <p class="howto"><?php echo $helps; ?></p>
    284281    </p>
    285282    <div class="tagchecklist"></div>
     
    465462    $hidden = get_hidden_meta_boxes('post');
    466463    if ( ! in_array('commentstatusdiv', $hidden) ) { ?>
    467         <script type="text/javascript">commentsBox.get(<?php echo $total; ?>, 10);</script>
     464        <script type="text/javascript">jQuery(document).ready(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script>
    468465<?php
    469466    }
Note: See TracChangeset for help on using the changeset viewer.