WordPress.org

Make WordPress Core

Changeset 35182


Ignore:
Timestamp:
10/15/2015 03:07:48 AM (6 years ago)
Author:
helen
Message:

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.

Location:
trunk/src/wp-admin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r35170 r35182  
    19281928        <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label>
    19291929        <input type="file" name="async-upload" id="async-upload" />
    1930         <?php submit_button( __( 'Upload' ), 'button', 'html-upload', false ); ?>
     1930        <?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
    19311931        <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a>
    19321932    </p>
  • trunk/src/wp-admin/includes/ms.php

    r35170 r35182  
    10781078    <?php endif;
    10791079
    1080     submit_button( __('Confirm Deletion'), 'delete' );
     1080    submit_button( __('Confirm Deletion'), 'primary' );
    10811081    ?>
    10821082    </form>
  • trunk/src/wp-admin/includes/template-functions.php

    r35170 r35182  
    846846<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
    847847</p>
    848 <?php submit_button( __('Upload file and import'), 'button' ); ?>
     848<?php submit_button( __('Upload file and import'), 'primary' ); ?>
    849849</form>
    850850<?php
  • trunk/src/wp-admin/network/sites.php

    r34891 r35182  
    108108                    <?php wp_nonce_field( $site_action . '_' . $id, '_wpnonce', false ); ?>
    109109                    <p><?php echo sprintf( $manage_actions[ $site_action ], $site_address ); ?></p>
    110                     <?php submit_button( __( 'Confirm' ), 'button' ); ?>
     110                    <?php submit_button( __( 'Confirm' ), 'primary' ); ?>
    111111                </form>
    112112            </div>
  • trunk/src/wp-admin/network/upgrade.php

    r35000 r35182  
    117117
    118118        <p><?php _e( 'The database update process may take a little while, so please be patient.' ); ?></p>
    119         <p><a class="button" href="upgrade.php?action=upgrade"><?php _e( 'Upgrade Network' ); ?></a></p>
     119        <p><a class="button button-primary" href="upgrade.php?action=upgrade"><?php _e( 'Upgrade Network' ); ?></a></p>
    120120        <?php
    121121        /**
  • trunk/src/wp-admin/users.php

    r34891 r35182  
    283283    ?>
    284284    <input type="hidden" name="action" value="dodelete" />
    285     <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?>
     285    <?php submit_button( __('Confirm Deletion'), 'primary' ); ?>
    286286<?php else : ?>
    287287    <p><?php _e('There are no valid users selected for deletion.'); ?></p>
     
    381381<?php if ( $go_remove ) : ?>
    382382        <input type="hidden" name="action" value="doremove" />
    383         <?php submit_button( __('Confirm Removal'), 'secondary' ); ?>
     383        <?php submit_button( __('Confirm Removal'), 'primary' ); ?>
    384384<?php else : ?>
    385385    <p><?php _e('There are no valid users selected for removal.'); ?></p>
Note: See TracChangeset for help on using the changeset viewer.