Make WordPress Core


Ignore:
Timestamp:
12/07/2013 07:45:57 AM (11 years ago)
Author:
nacin
Message:

Core updates for the new color schemes.

  • Update about page, there's now 8.
  • Display them four wide, not three, and ensure adequate spacing.
  • Use a dedicated nonce.
  • Push Light to the front in addition to Default.
  • Use user-profile.js on about.php. A few extra things are initialized but they are harmless.

see #26468, #26387.

File:
1 edited

Legend:

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

    r26764 r26776  
    8080        <div>
    8181            <h3><?php echo ( 'Pick a color' ); ?></h3>
    82             <p><?php echo ( 'We&#8217;ve included four color schemes so that you can pick your favorite. Choose from any of the schemes below to change it in an instant.' ); ?></p>
     82            <p><?php echo ( 'We&#8217;ve included eight color schemes so you can pick your favorite. Choose from any of them below to change it in an instant.' ); ?></p>
    8383            <?php $user_id = get_current_user_id(); ?>
    8484            <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) :?>
    8585                <?php
    86                 wp_nonce_field('update-user_' . $user_id);
    8786                /** This action is documented in wp-admin/user-edit.php */
    8887                do_action( 'admin_color_scheme_picker' );
     
    9190                <img src="<?php echo admin_url( 'images/about-color-schemes.png' ); ?>" />
    9291            <?php endif; ?>
    93             <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>
     92            <p><?php printf( ( 'To change your color scheme later, just <a href="%1$s">visit your profile</a>.' ), get_edit_profile_url( $user_id ) ); ?></p>
    9493        </div>
    9594    </div>
Note: See TracChangeset for help on using the changeset viewer.