Changeset 26776
- Timestamp:
- 12/07/2013 07:45:57 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/about.php
r26764 r26776 80 80 <div> 81 81 <h3><?php echo ( 'Pick a color' ); ?></h3> 82 <p><?php echo ( 'We’ve included four color schemes so that you can pick your favorite. Choose from any of the schemesbelow to change it in an instant.' ); ?></p>82 <p><?php echo ( 'We’ve included eight color schemes so you can pick your favorite. Choose from any of them below to change it in an instant.' ); ?></p> 83 83 <?php $user_id = get_current_user_id(); ?> 84 84 <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) :?> 85 85 <?php 86 wp_nonce_field('update-user_' . $user_id);87 86 /** This action is documented in wp-admin/user-edit.php */ 88 87 do_action( 'admin_color_scheme_picker' ); … … 91 90 <img src="<?php echo admin_url( 'images/about-color-schemes.png' ); ?>" /> 92 91 <?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> 94 93 </div> 95 94 </div> -
trunk/src/wp-admin/css/wp-admin.css
r26772 r26776 7639 7639 .color-option { 7640 7640 display: inline-block; 7641 width: 32%;7641 width: 24%; 7642 7642 padding: 5px 15px 15px; 7643 7643 -moz-box-sizing: border-box; 7644 7644 box-sizing: border-box; 7645 margin-bottom: 3px; 7645 7646 } 7646 7647 … … 8030 8031 8031 8032 .about-wrap .about-colors .color-option { 8032 width: 24%;8033 8033 padding-top: 10px; 8034 8034 } -
trunk/src/wp-admin/includes/ajax-actions.php
r26535 r26776 2251 2251 2252 2252 $user_id = get_current_user_id(); 2253 check_ajax_referer( 'update-user_' . $user_id, 'nonce' ); 2253 2254 check_ajax_referer( 'save-color-scheme_' . $user_id, 'nonce' ); 2254 2255 2255 2256 $color_scheme = sanitize_key( $_POST['color_scheme'] ); -
trunk/src/wp-admin/includes/misc.php
r26732 r26776 568 568 569 569 if ( isset( $_wp_admin_css_colors['fresh'] ) ) { 570 // Set 'fresh' (the default option) to be the first array element571 $_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 ); 572 572 } 573 573 … … 582 582 <legend class="screen-reader-text"><span><?php _e( 'Admin Color Scheme' ); ?></span></legend> 583 583 <?php 584 584 wp_nonce_field( 'save-color-scheme_' . $user_id, 'color-nonce', false ); 585 585 foreach ( $_wp_admin_css_colors as $color => $color_info ) : 586 586 … … 597 597 foreach ( $color_info->colors as $html_color ) { 598 598 ?> 599 <td style="background-color: <?php echo esc_attr( $html_color ); ?>" title="<?php echo esc_attr( $color ); ?>"> </td>599 <td style="background-color: <?php echo esc_attr( $html_color ); ?>"> </td> 600 600 <?php 601 601 } -
trunk/src/wp-admin/js/user-profile.js
r26693 r26776 115 115 action: 'save-user-color-scheme', 116 116 color_scheme: $this.children( 'input[name="admin_color"]' ).val(), 117 nonce: $('# _wpnonce').val()117 nonce: $('#color-nonce').val() 118 118 }); 119 119 } -
trunk/src/wp-includes/script-loader.php
r26693 r26776 332 332 $scripts->add( 'user-suggest', "/wp-admin/js/user-suggest$suffix.js", array( 'jquery-ui-autocomplete' ), false, 1 ); 333 333 334 $scripts->add( 'about', "/wp-admin/js/about$suffix.js", array( 'jquery', 'password-strength-meter' ), false, 1);334 $scripts->add( 'about', false, array( 'user-profile' ), false ); 335 335 336 336 $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array(), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.