Make WordPress Core


Ignore:
Timestamp:
12/06/2013 09:25:31 PM (11 years ago)
Author:
iammattthomas
Message:

Adding autosave for color schemes and removing RTL handling. See #26387, props ryelle.

File:
1 edited

Legend:

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

    r26737 r26746  
    8282            <h3><?php echo ( 'Pick a color' ); ?></h3>
    8383            <p><?php echo ( 'We&#8217;ve included four color schemes so that you can choose your favorite. Don&#8217;t like this striking new admin? Choose from any of the schemes below to change it in an instant.' ); ?></p>
     84            <?php $user_id = get_current_user_id(); ?>
    8485            <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) :?>
    8586                <?php
     87                wp_nonce_field('update-user_' . $user_id);
    8688                /** This action is documented in wp-admin/user-edit.php */
    8789                do_action( 'admin_color_scheme_picker' );
     
    9092                <img src="<?php echo admin_url( 'images/about-color-schemes.png' ); ?>" />
    9193            <?php endif; ?>
    92             <p><?php printf( ( 'To change your color scheme later, just <a href="%1$s">visit your profile settings</a>.' ), get_edit_profile_url( get_current_user_id() ) ); ?></p>
     94            <p><?php printf( ( 'To change your color scheme later, just <a href="%1$s">visit your profile settings</a>.' ), get_edit_profile_url( $user_id ) ); ?></p>
    9395        </div>
    9496    </div>
Note: See TracChangeset for help on using the changeset viewer.