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

    r16034 r16061  
    10261026    $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">
    10271027    <p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
    1028     <p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p>
     1028    <p>
     1029        <label for="' . $label . '">' . __("Password:") . '
     1030            <input name="post_password" id="' . $label . '" type="password" size="20" />
     1031        </label>' . get_submit_button( __( 'Submit' ), '', 'Submit', false ) . '
     1032    </p>
    10291033    </form>
    10301034    ';
     
    12091213<div class="tablenav">
    12101214    <div class="alignleft">
    1211         <input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" />
     1215        <?php submit_button( __( 'Compare Revisions' ), 'secondary', '', false ); ?>
    12121216        <input type="hidden" name="action" value="diff" />
    12131217        <input type="hidden" name="post_type" value="<?php echo esc_attr($post->post_type); ?>" />
Note: See TracChangeset for help on using the changeset viewer.