Make WordPress Core

Changeset 16066


Ignore:
Timestamp:
10/29/2010 12:31:27 AM (13 years ago)
Author:
nacin
Message:

Revert submit_button() for wp-includes, setup-config, install, login, signup. see [16061], see #15064, fixes #15247.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r16061 r16066  
    134134        </tr>
    135135    </table>
    136     <p class="step"><?php submit_button( __( 'Install WordPress' ), 'button', 'Submit', false ); ?></p>
     136    <p class="step"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Install WordPress' ); ?>" class="button" /></p>
    137137</form>
    138138<?php
  • trunk/wp-admin/setup-config.php

    r16061 r16066  
    147147    </table>
    148148    <?php if ( isset( $_GET['noapi'] ) ) { ?><input name="noapi" type="hidden" value="true" /><?php } ?>
    149     <p class="step"><?php submit_button( __( 'Submit' ), 'button', 'submit', false ); ?></p>
     149    <p class="step"><input name="submit" type="submit" value="Submit" class="button" /></p>
    150150</form>
    151151<?php
  • trunk/wp-includes/comment-template.php

    r16061 r16066  
    15731573                        <?php echo $args['comment_notes_after']; ?>
    15741574                        <p class="form-submit">
    1575                             <?php submit_button( $args['label_submit'], 'button', 'submit', false, array( 'id' => $args['id_submit'] ) ); ?>
     1575                            <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
    15761576                            <?php comment_id_fields(); ?>
    15771577                        </p>
  • trunk/wp-includes/general-template.php

    r16061 r16066  
    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     ' . get_submit_button( __( 'Search' ), '', 'searchsubmit', false ) . '
     163    <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
    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             ' . get_submit_button( $args['label_log_in'], 'primary', 'wp-submit', false, array( 'id' => $args['id_submit'], 'tabindex' => 100 ) ) . '
     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" />
    287287                <input type="hidden" name="redirect_to" value="' . esc_attr( $args['redirect'] ) . '" />
    288288            </p>
  • trunk/wp-includes/post-template.php

    r16061 r16066  
    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>
    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>
     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>
    10331029    </form>
    10341030    ';
     
    12131209<div class="tablenav">
    12141210    <div class="alignleft">
    1215         <?php submit_button( __( 'Compare Revisions' ), 'secondary', '', false ); ?>
     1211        <input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" />
    12161212        <input type="hidden" name="action" value="diff" />
    12171213        <input type="hidden" name="post_type" value="<?php echo esc_attr($post->post_type); ?>" />
  • trunk/wp-includes/post.php

    r16061 r16066  
    51245124
    51255125    $submit_fields = array(
    5126         'save' => get_submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post', 'tabindex' => '%s' ) ),
     5126        'save' => '<input type="submit" name="save" id="save-post" class="button" tabindex="%s" value="'.  esc_attr('Save Draft') .'" />',
    51275127        'reset' => '<input type="reset" tabindex="%s" value="'. esc_attr( 'Reset' ).'" class="button" />',
    51285128    );
     
    51315131
    51325132    $publishing_fields = array(
    5133     'submit' => get_submit_button( $publishing_action, 'primary', 'publish', false, array( 'accesskey' => 'p', 'tabindex' => '%s' ) ),
     5133    'submit' => '<input type="submit" name="publish" id="publish" accesskey="p" tabindex="%s" class="button-primary" value="' . $publishing_action . '" />',
    51345134    /*'test' => '<input type="submit" name="publish" id="publish" accesskey="p" tabindex="%n" class="button-primary" value="'. esc_attr('Publish') .'" />', */
    51355135
  • trunk/wp-includes/theme-compat/comments-popup.php

    r16061 r16066  
    9696      <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    9797      <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" />
    98       <?php submit_button( __( 'Say It!' ), '', 'submit', false, array( 'tabindex' => '5' ) ); ?>
     98      <input name="submit" type="submit" tabindex="5" value="<?php _e('Say It!' ); ?>" />
    9999    </p>
    100100    <?php do_action('comment_form', $post->ID); ?>
  • trunk/wp-includes/theme-compat/comments.php

    r16061 r16066  
    9090<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
    9191
    92 <p><?php submit_button( __( 'Submit Comment' ), '', 'submit', false, array( 'tabindex' => '5' ) ); ?>
     92<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" />
    9393<?php comment_id_fields(); ?>
    9494</p>
  • trunk/wp-login.php

    r16061 r16066  
    412412<?php do_action('lostpassword_form'); ?>
    413413    <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    414     <?php submit_button( __( 'Get New Password' ), 'primary', 'wp-submit', true, array( 'tabindex' => '100' ) ); ?>
     414    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Get New Password'); ?>" tabindex="100" /></p>
    415415</form>
    416416
     
    468468
    469469    <br class="clear" />
    470     <?php submit_button( __( 'Reset Password' ), 'primary', 'wp-submit', true, array( 'tabindex' => '100' ) ); ?>
     470    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Reset Password'); ?>" tabindex="100" /></p>
    471471</form>
    472472
     
    524524    <br class="clear" />
    525525    <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    526     <?php submit_button( __( 'Register' ), 'primary', 'wp-submit', true, array( 'tabindex' => '100' ) ); ?>
     526    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Register'); ?>" tabindex="100" /></p>
    527527</form>
    528528
     
    641641    <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
    642642    <p class="submit">
    643         <?php submit_button( __( 'Log In' ), 'primary', 'wp-submit', false, array( 'tabindex' => '100' ) ); ?>
     643        <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Log In'); ?>" tabindex="100" />
    644644<?php   if ( $interim_login ) { ?>
    645645        <input type="hidden" name="interim-login" value="1" />
  • trunk/wp-signup.php

    r16061 r16066  
    192192        <?php do_action( "signup_hidden_fields" ); ?>
    193193        <?php show_blog_form($blogname, $blog_title, $errors); ?>
    194         <?php submit_button( __( 'Create Site' ), 'submit', 'submit' ); ?>
     194        <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p>
    195195    </form>
    196196    <?php
     
    271271        </p>
    272272
    273         <?php submit_button( __( 'Next' ), 'submit', 'submit' ); ?>
     273        <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Next') ?>" /></p>
    274274    </form>
    275275    <?php
     
    327327        <?php do_action( "signup_hidden_fields" ); ?>
    328328        <?php show_blog_form($blogname, $blog_title, $errors); ?>
    329         <?php submit_button( __( 'Signup' ), 'submit', 'submit', true ); ?>
     329        <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p>
    330330    </form>
    331331    <?php
Note: See TracChangeset for help on using the changeset viewer.