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/plugins.php

    r16026 r16061  
    254254                    ?>
    255255                    <?php wp_nonce_field('bulk-plugins') ?>
    256                     <input type="submit" name="submit" value="<?php $data_to_delete ? esc_attr_e('Yes, Delete these files and data') : esc_attr_e('Yes, Delete these files') ?>" class="button" />
     256                    <?php submit_button( $data_to_delete ? __( 'Yes, Delete these files and data' ) : __( 'Yes, Delete these files' ), 'button', 'submit', false ); ?>
    257257                </form>
    258258                <form method="post" action="<?php echo esc_url(wp_get_referer()); ?>" style="display:inline;">
    259                     <input type="submit" name="submit" value="<?php esc_attr_e('No, Return me to the plugin list') ?>" class="button" />
     259                    <?php submit_button( __( 'No, Return me to the plugin list' ), 'button', 'submit', false ); ?>
    260260                </form>
    261261
     
    358358    <label class="screen-reader-text" for="plugin-search-input"><?php _e( 'Search Plugins' ); ?>:</label>
    359359    <input type="text" id="plugin-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    360     <input type="submit" value="<?php esc_attr_e( 'Search Installed Plugins' ); ?>" class="button" />
     360    <?php submit_button( __( 'Search Installed Plugins' ), 'button', '', false ); ?>
    361361</p>
    362362</form>
Note: See TracChangeset for help on using the changeset viewer.