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/includes/misc.php

    r26732 r26776  
    568568
    569569    if ( isset( $_wp_admin_css_colors['fresh'] ) ) {
    570         // Set 'fresh' (the default option) to be the first array element
    571         $_wp_admin_css_colors = array_merge( array( 'fresh' => '' ), $_wp_admin_css_colors );
     570        // Set Default ('fresh') and Light should go first.
     571        $_wp_admin_css_colors = array_merge( array( 'fresh' => '', 'light' => '' ), $_wp_admin_css_colors );
    572572    }
    573573
     
    582582        <legend class="screen-reader-text"><span><?php _e( 'Admin Color Scheme' ); ?></span></legend>
    583583        <?php
    584 
     584        wp_nonce_field( 'save-color-scheme_' . $user_id, 'color-nonce', false );
    585585        foreach ( $_wp_admin_css_colors as $color => $color_info ) :
    586586
     
    597597                    foreach ( $color_info->colors as $html_color ) {
    598598                        ?>
    599                         <td style="background-color: <?php echo esc_attr( $html_color ); ?>" title="<?php echo esc_attr( $color ); ?>">&nbsp;</td>
     599                        <td style="background-color: <?php echo esc_attr( $html_color ); ?>">&nbsp;</td>
    600600                        <?php
    601601                    }
Note: See TracChangeset for help on using the changeset viewer.