WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 09:56:43 PM (9 years ago)
Author:
markjaquith
Message:

Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064

File:
1 edited

Legend:

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

    r16032 r16061  
    226226    <label class="screen-reader-text" for="tag-search-input"><?php echo $tax->labels->search_items; ?>:</label>
    227227    <input type="text" id="tag-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    228     <input type="submit" value="<?php echo esc_attr( $tax->labels->search_items );  ?>" class="button" />
     228    <?php submit_button( $tax->labels->search_items, 'button', 'submit', false ); ?>
    229229</p>
    230230</form>
     
    335335    do_action('add_tag_form_fields', $taxonomy);
    336336do_action($taxonomy . '_add_form_fields', $taxonomy);
    337 ?>
    338 <p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" /></p>
    339 <?php
     337
     338submit_button( $tax->labels->add_new_item );
     339
    340340// Back compat hooks. Deprecated in preference to {$taxonomy}_add_form
    341341if ( 'category' == $taxonomy )
Note: See TracChangeset for help on using the changeset viewer.