Make WordPress Core

Ticket #16345: 16345.diff

File 16345.diff, 1.3 KB (added by garyc40, 14 years ago)

"Search Themes" and "Apply Filters" buttons don't need a name

  • wp-admin/themes.php

    diff --git wp-admin/themes.php wp-admin/themes.php
    index 171a0b2..0df4836 100644
    if ( ! current_user_can( 'switch_themes' ) ) { 
    149149<p class="search-box">
    150150        <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label>
    151151        <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    152         <?php submit_button( __( 'Search Themes' ), 'button', 'submit', false ); ?>
     152        <?php submit_button( __( 'Search Themes' ), 'button', false, false, array( 'id' => 'search-submit' ) ); ?>
    153153        <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a>
    154154</p>
    155155
    if ( ! current_user_can( 'switch_themes' ) ) { 
    184184        <?php endforeach; ?>
    185185
    186186        <div class="feature-container">
    187                 <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', 'submit', false, array( 'style' => 'margin-left: 120px' ) ); ?>
     187                <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', false, false, array( 'style' => 'margin-left: 120px' ) ); ?>
    188188                &nbsp;
    189189                <small><a id="mini-filter-click" href="<?php echo esc_url( remove_query_arg( array('filter', 'features', 'submit') ) ); ?>"><?php _e( 'Close filters' )?></a></small>
    190190        </div>