WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/24/2012 03:29:51 AM (7 years ago)
Author:
koopersmith
Message:

Theme Customizer: Change 'Return to...' link to 'Cancel' and move 'Save' button to header. props helenyhou, fixes #20692, see #19910.

File:
1 edited

Legend:

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

    r20858 r20864  
    5151        <?php wp_nonce_field( 'customize_controls' ); ?>
    5252        <div id="customize-header-actions" class="wp-full-overlay-header">
    53             <a class="back" href="<?php echo esc_url( admin_url( 'themes.php' ) ); ?>">
    54                 <?php printf( __( '&larr; Return to %s' ), __('Manage Themes') ); ?>
     53            <?php
     54                $save_text = $wp_customize->is_theme_active() ? __( 'Save' ) : __( 'Save and Activate' );
     55                submit_button( $save_text, 'primary', 'save', false );
     56            ?>
     57            <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" />
     58            <a class="back button" href="<?php echo esc_url( admin_url( 'themes.php' ) ); ?>">
     59                <?php _e( 'Cancel' ); ?>
    5560            </a>
    5661        </div>
     
    8287
    8388        <div id="customize-footer-actions" class="wp-full-overlay-footer">
    84             <?php
    85             $save_text = $wp_customize->is_theme_active() ? __('Save') : __('Save and Activate');
    86             submit_button( $save_text, 'primary', 'save', false );
    87             ?>
    88             <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" />
    89 
    9089            <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
    9190                <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
Note: See TracChangeset for help on using the changeset viewer.