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/update-core.php

    r16008 r16061  
    5959    echo '<input name="locale" value="'. esc_attr($update->locale) .'" type="hidden"/>';
    6060    if ( $show_buttons ) {
    61         echo '<input id="upgrade" class="button" type="submit" value="' . esc_attr($submit) . '" name="upgrade" />&nbsp;';
    62         echo '<a href="' . esc_url($update->package) . '" class="button">' . $download . '</a>&nbsp;';
     61        submit_button( $submit, 'button', 'upgrade', false );
     62        echo '&nbsp;<a href="' . esc_url($update->package) . '" class="button">' . $download . '</a>&nbsp;';
    6363    }
    6464    if ( 'en_US' != $update->locale )
    6565        if ( !isset( $update->dismissed ) || !$update->dismissed )
    66             echo '<input id="dismiss" class="button" type="submit" value="' . esc_attr__('Hide this update') . '" name="dismiss" />';
     66            submit_button( __('Hide this update'), 'button', 'dismiss', false );
    6767        else
    68             echo '<input id="undismiss" class="button" type="submit" value="' . esc_attr__('Bring back this update') . '" name="undismiss" />';
     68            submit_button( __('Bring back this update'), 'button', 'undismiss', false );
    6969    echo '</p>';
    7070    if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) )
Note: See TracChangeset for help on using the changeset viewer.