Make WordPress Core

Changeset 15830


Ignore:
Timestamp:
10/17/2010 06:24:34 PM (16 years ago)
Author:
scribu
Message:

Use submit_button() in more places. See #15064

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-activate.php

    r15473 r15830  
    4949                            <br /><input type="text" name="key" id="key" value="" size="50" />
    5050                        </p>
    51                         <p class="submit">
    52                             <input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e('Activate') ?>" />
    53                         </p>
     51                        <?php submit_button( __('Activate'), 'submit' ); ?>
    5452                </form>
    5553
  • trunk/wp-admin/custom-background.php

    r15564 r15830  
    304304
    305305<?php wp_nonce_field('custom-background'); ?>
    306 <p class="submit"><input type="submit" class="button-primary" name="save-background-options" value="<?php esc_attr_e('Save Changes'); ?>" /></p>
     306<?php submit_button( null, 'primary', 'save-background-options' ); ?>
    307307</form>
    308308
  • trunk/wp-admin/custom-header.php

    r15828 r15830  
    563563
    564564wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
    565 <p class="submit"><input type="submit" class="button-primary" name="save-header-options" value="<?php esc_attr_e( 'Save Changes' ); ?>" /></p>
     565
     566<?php submit_button(); ?>
    566567</form>
    567568</div>
    … …  
    637638        </div>
    638639
    639         <p class="submit">
    640640        <input type="hidden" name="x1" id="x1" value="0"/>
    641641        <input type="hidden" name="y1" id="y1" value="0"/>
    … …  
    645645        <input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" />
    646646        <?php wp_nonce_field( 'custom-header-crop-image' ) ?>
    647         <input type="submit" class="button-primary" value="<?php esc_attr_e( 'Crop and Publish' ); ?>" />
     647       
     648        <?php submit_button( __( 'Crop and Publish' ) ); ?>
    648649        </p>
    649650</form>
  • trunk/wp-admin/edit-tag-form.php

    r15820 r15830  
    8787
    8888do_action($taxonomy . '_edit_form', $tag, $taxonomy);
     89
     90submit_button( __('Update') );
    8991?>
    90 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr( __( 'Update' ) ); ?>" /></p>
    9192</form>
    9293</div>
  • trunk/wp-admin/export.php

    r15307 r15830  
    137137</tr>
    138138</table>
    139 <p class="submit"><input type="submit" name="submit" class="button" value="<?php esc_attr_e('Download Export File'); ?>" />
     139<?php submit_button( __('Download Export File'), 'secondary' ); ?>
    140140<input type="hidden" name="download" value="true" />
    141141</p>
  • trunk/wp-admin/includes/dashboard.php

    r15746 r15830  
    153153        echo '<form action="" method="post" class="dashboard-widget-control-form">';
    154154        wp_dashboard_trigger_widget_control( $meta_box['id'] );
    155         echo '<p class="submit"><input type="hidden" name="widget_id" value="' . esc_attr($meta_box['id']) . '" /><input type="submit" value="' . esc_attr__( 'Submit' ) . '" /></p>';
    156 
     155        echo '<input type="hidden" name="widget_id" value="' . esc_attr($meta_box['id']) . '" />';
     156        submit_button( __('Submit') );
    157157        echo '</form>';
    158158}
  • trunk/wp-admin/includes/template.php

    r15810 r15830  
    844844<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
    845845</p>
    846 <p class="submit">
    847 <input type="submit" class="button" value="<?php esc_attr_e( 'Upload file and import' ); ?>" />
    848 </p>
     846<?php submit_button( __('Upload file and import'), 'secondary' ); ?>
    849847</form>
    850848<?php
  • trunk/wp-admin/media.php

    r14139 r15830  
    101101</div>
    102102
    103 <p class="submit">
    104 <input type="submit" class="button-primary" name="save" value="<?php esc_attr_e('Update Media'); ?>" />
     103<?php submit_button( __('Update Media') ); ?>
    105104<input type="hidden" name="post_id" id="post_id" value="<?php echo isset($post_id) ? esc_attr($post_id) : ''; ?>" />
    106105<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr($att_id); ?>" />
    … …  
    108107<?php wp_original_referer_field(true, 'previous'); ?>
    109108<?php wp_nonce_field('media-form'); ?>
    110 </p>
     109
    111110</form>
    112111
  • trunk/wp-admin/network/edit.php

    r15746 r15830  
    7575                }
    7676        }
     77       
     78        submit_button( __('Confirm Deletion'), 'delete' );
    7779        ?>
    78         <p class="submit"><input type="submit" class="button-secondary delete" value="<?php esc_attr_e( 'Confirm Deletion' ); ?>" /></p>
    7980        </form>
    8081    <?php
    … …  
    503504                                        <?php wp_nonce_field( $_GET['action2'], '_wpnonce', false ); ?>
    504505                                        <p><?php echo esc_html( stripslashes( $_GET['msg'] ) ); ?></p>
    505                                         <p class="submit"><input class="button" type="submit" value="<?php _e( 'Confirm' ); ?>" /></p>
     506                                        <?php submit_button( __('Confirm'), 'secondary' ); ?>
    506507                                </form>
    507508                        </body>
  • trunk/wp-admin/network/settings.php

    r15746 r15830  
    274274                <?php do_action( 'wpmu_options' ); // Add more options here ?>
    275275
    276                 <p class="submit"><input type="submit" class="button-primary" name="Submit" value="<?php esc_attr_e( 'Save Changes' ) ?>" /></p>
     276                <?php submit_button(); ?>
    277277        </form>
    278278</div>
  • trunk/wp-admin/options.php

    r14650 r15830  
    210210?>
    211211  </table>
    212 <p class="submit"><input type="hidden" name="page_options" value="<?php echo esc_attr( implode( ',', $options_to_update ) ); ?>" /><input type="submit" name="Update" value="<?php esc_attr_e( 'Save Changes' ); ?>" class="button-primary" /></p>
     212
     213<input type="hidden" name="page_options" value="<?php echo esc_attr( implode( ',', $options_to_update ) ); ?>" />
     214
     215<?php submit_button( __('Save Changes') ); ?>
     216
    213217  </form>
    214218</div>
  • trunk/wp-admin/user-edit.php

    r15780 r15830  
    385385<?php } ?>
    386386
    387 <p class="submit">
    388         <input type="hidden" name="action" value="update" />
    389         <input type="hidden" name="user_id" id="user_id" value="<?php echo esc_attr($user_id); ?>" />
    390         <input type="submit" class="button-primary" value="<?php IS_PROFILE_PAGE ? esc_attr_e('Update Profile') : esc_attr_e('Update User') ?>" name="submit" />
    391 </p>
     387<input type="hidden" name="action" value="update" />
     388<input type="hidden" name="user_id" id="user_id" value="<?php echo esc_attr($user_id); ?>" />
     389
     390<?php submit_button( IS_PROFILE_PAGE ? __('Update Profile') : __('Update User') ); ?>
     391
    392392</form>
    393393</div>
  • trunk/wp-admin/user-new.php

    r15780 r15830  
    266266        <?php } ?>
    267267</table>
    268 <p class="submit">
    269         <input name="adduser" type="submit" id="addusersub" class="button-primary" value="<?php esc_attr_e('Add User') ?>" />
    270 </p>
     268
     269<?php submit_button( __('Add User'), 'primary', 'adduser' ); ?>
    271270</form>
    272271
  • trunk/wp-admin/users.php

    r15746 r15830  
    191191        </ul></fieldset>
    192192        <input type="hidden" name="action" value="dodelete" />
    193         <p class="submit"><input type="submit" name="submit" value="<?php esc_attr_e('Confirm Deletion'); ?>" class="button-secondary" /></p>
     193        <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?>
    194194<?php else : ?>
    195195        <p><?php _e('There are no valid users selected for deletion.'); ?></p>
    … …  
    279279<?php if ( $go_remove ) : ?>
    280280                <input type="hidden" name="action" value="doremove" />
    281                 <p class="submit"><input type="submit" name="submit" value="<?php esc_attr_e('Confirm Removal'); ?>" class="button-secondary" /></p>
     281                <?php submit_button( __('Confirm Removal'), 'secondary' ); ?>
    282282<?php else : ?>
    283283        <p><?php _e('There are no valid users selected for removal.'); ?></p>
Note: See TracChangeset for help on using the changeset viewer.