Make WordPress Core


Ignore:
Timestamp:
10/28/2010 09:56:43 PM (14 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/themes.php

    r16008 r16061  
    134134    <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label>
    135135    <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    136     <input type="submit" value="<?php esc_attr_e('Search Themes'); ?>" class="button" />
     136    <?php submit_button( __( 'Search Themes' ), 'button', 'submit', false ); ?>
    137137    <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a>
    138138</p>
     
    167167
    168168    <div class="feature-container">
    169         <input style="margin-left: 120px" type="submit" class="button-secondary submitter" value="<?php esc_attr_e( 'Apply Filters' ); ?>" />
     169        <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', 'submit', false, array( 'style' => 'margin-left: 120px' ) ); ?>
    170170        &nbsp;
    171171        <small><a id="mini-filter-click" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Close filters' )?></a></small>
Note: See TracChangeset for help on using the changeset viewer.