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/includes/theme-install.php

    r15898 r16061  
    6464    </select>
    6565    <input type="text" name="s" size="30" value="<?php echo esc_attr($term) ?>" />
    66     <input type="submit" name="search" value="<?php esc_attr_e('Search'); ?>" class="button" />
     66    <?php submit_button( __( 'Search' ), 'button', 'search', false ); ?>
    6767</form>
    6868<?php
     
    107107</div>
    108108<br class="clear" />
    109 <p><input type="submit" name="search" value="<?php esc_attr_e('Find Themes'); ?>" class="button" /></p>
     109<?php submit_button( __( 'Find Themes' ), 'button', 'search' ); ?>
    110110</form>
    111111<?php
     
    120120    <?php wp_nonce_field( 'theme-upload') ?>
    121121    <input type="file" name="themezip" />
    122     <input type="submit"
    123     class="button" value="<?php esc_attr_e('Install Now') ?>" />
     122    <?php submit_button( __( 'Install Now' ), 'button', '', false ); ?>
    124123</form>
    125124    <?php
Note: See TracChangeset for help on using the changeset viewer.