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-includes/general-template.php

    r16050 r16061  
    161161    <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label>
    162162    <input type="text" value="' . get_search_query() . '" name="s" id="s" />
    163     <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
     163    ' . get_submit_button( __( 'Search' ), '', 'searchsubmit', false ) . '
    164164    </div>
    165165    </form>';
     
    284284            ' . ( $args['remember'] ? '<p class="login-remember"><label><input name="rememberme" type="checkbox" id="' . esc_attr( $args['id_remember'] ) . '" value="forever" tabindex="90"' . ( $args['value_remember'] ? ' checked="checked"' : '' ) . ' /> ' . esc_html( $args['label_remember'] ) . '</label></p>' : '' ) . '
    285285            <p class="login-submit">
    286                 <input type="submit" name="wp-submit" id="' . esc_attr( $args['id_submit'] ) . '" class="button-primary" value="' . esc_attr( $args['label_log_in'] ) . '" tabindex="100" />
     286            ' . get_submit_button( $args['label_log_in'], 'primary', 'wp-submit', false, array( 'id' => $args['id_submit'], 'tabindex' => 100 ) ) . '
    287287                <input type="hidden" name="redirect_to" value="' . esc_attr( $args['redirect'] ) . '" />
    288288            </p>
Note: See TracChangeset for help on using the changeset viewer.