Make some primary action buttons look primary.

* User deletion/removal
* Site status change (multisite)
* Network upgrade
* Import file upload
* Media browser upload

props Dezzy for the initial patch.
fixes #23738.

Built from https://develop.svn.wordpress.org/trunk@35182


git-svn-id: http://core.svn.wordpress.org/trunk@35148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-10-15 03:08:24 +00:00
parent 2c46a4dcba
commit f3107e5842
7 changed files with 8 additions and 8 deletions

View File

@ -1927,7 +1927,7 @@ do_action( 'post-plupload-upload-ui' ); ?>
<p id="async-upload-wrap"> <p id="async-upload-wrap">
<label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label> <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label>
<input type="file" name="async-upload" id="async-upload" /> <input type="file" name="async-upload" id="async-upload" />
<?php submit_button( __( 'Upload' ), 'button', 'html-upload', false ); ?> <?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
<a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a> <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a>
</p> </p>
<div class="clear"></div> <div class="clear"></div>

View File

@ -1077,7 +1077,7 @@ function confirm_delete_users( $users ) {
<p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, these users will be permanently removed.' ); ?></p> <p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, these users will be permanently removed.' ); ?></p>
<?php endif; <?php endif;
submit_button( __('Confirm Deletion'), 'delete' ); submit_button( __('Confirm Deletion'), 'primary' );
?> ?>
</form> </form>
<?php <?php

View File

@ -845,7 +845,7 @@ function wp_import_upload_form( $action ) {
<input type="hidden" name="action" value="save" /> <input type="hidden" name="action" value="save" />
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" /> <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
</p> </p>
<?php submit_button( __('Upload file and import'), 'button' ); ?> <?php submit_button( __('Upload file and import'), 'primary' ); ?>
</form> </form>
<?php <?php
endif; endif;

View File

@ -107,7 +107,7 @@ if ( isset( $_GET['action'] ) ) {
<input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" /> <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
<?php wp_nonce_field( $site_action . '_' . $id, '_wpnonce', false ); ?> <?php wp_nonce_field( $site_action . '_' . $id, '_wpnonce', false ); ?>
<p><?php echo sprintf( $manage_actions[ $site_action ], $site_address ); ?></p> <p><?php echo sprintf( $manage_actions[ $site_action ], $site_address ); ?></p>
<?php submit_button( __( 'Confirm' ), 'button' ); ?> <?php submit_button( __( 'Confirm' ), 'primary' ); ?>
</form> </form>
</div> </div>
<?php <?php

View File

@ -116,7 +116,7 @@ switch ( $action ) {
<?php endif; ?> <?php endif; ?>
<p><?php _e( 'The database update process may take a little while, so please be patient.' ); ?></p> <p><?php _e( 'The database update process may take a little while, so please be patient.' ); ?></p>
<p><a class="button" href="upgrade.php?action=upgrade"><?php _e( 'Upgrade Network' ); ?></a></p> <p><a class="button button-primary" href="upgrade.php?action=upgrade"><?php _e( 'Upgrade Network' ); ?></a></p>
<?php <?php
/** /**
* Fires before the footer on the network upgrade screen. * Fires before the footer on the network upgrade screen.

View File

@ -282,7 +282,7 @@ case 'delete':
do_action( 'delete_user_form', $current_user ); do_action( 'delete_user_form', $current_user );
?> ?>
<input type="hidden" name="action" value="dodelete" /> <input type="hidden" name="action" value="dodelete" />
<?php submit_button( __('Confirm Deletion'), 'secondary' ); ?> <?php submit_button( __('Confirm Deletion'), 'primary' ); ?>
<?php else : ?> <?php else : ?>
<p><?php _e('There are no valid users selected for deletion.'); ?></p> <p><?php _e('There are no valid users selected for deletion.'); ?></p>
<?php endif; ?> <?php endif; ?>
@ -380,7 +380,7 @@ case 'remove':
</ul> </ul>
<?php if ( $go_remove ) : ?> <?php if ( $go_remove ) : ?>
<input type="hidden" name="action" value="doremove" /> <input type="hidden" name="action" value="doremove" />
<?php submit_button( __('Confirm Removal'), 'secondary' ); ?> <?php submit_button( __('Confirm Removal'), 'primary' ); ?>
<?php else : ?> <?php else : ?>
<p><?php _e('There are no valid users selected for removal.'); ?></p> <p><?php _e('There are no valid users selected for removal.'); ?></p>
<?php endif; ?> <?php endif; ?>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-35181'; $wp_version = '4.4-alpha-35182';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.