Changeset 26795
- Timestamp:
- 12/08/2013 07:14:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/about.php
r26788 r26795 76 76 <hr> 77 77 78 <?php 79 global $_wp_admin_css_colors; 80 $new_colors = array( 'fresh', 'light', 'blue', 'midnight', 'sunrise', 'ectoplasm', 'ocean', 'coffee' ); 81 $_wp_admin_css_colors = array_intersect_key( $_wp_admin_css_colors, array_fill_keys( $new_colors, true ) ); 82 83 if ( count( $_wp_admin_css_colors ) > 1 && has_action( 'admin_color_scheme_picker' ) ) : ?> 78 84 <div class="changelog about-colors"> 79 85 <div class="feature-section col one-col"> 80 86 <div> 81 87 <h3><?php echo ( 'Pick a color' ); ?></h3> 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 <?php $user_id = get_current_user_id(); ?> 84 <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) :?> 88 <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.' ); ?> 85 89 <?php 86 90 /** This action is documented in wp-admin/user-edit.php */ 87 91 do_action( 'admin_color_scheme_picker' ); 88 92 ?> 89 <?php else : ?> 90 <img src="<?php echo admin_url( 'images/about-color-schemes.png' ); ?>" /> 91 <?php endif; ?> 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> 93 <p><?php printf( ( 'To change your color scheme later, just <a href="%1$s">visit your profile</a>.' ), get_edit_profile_url( get_current_user_id() ) ); ?></p> 93 94 </div> 94 95 </div> … … 96 97 97 98 <hr> 99 <?php endif; ?> 98 100 99 101 <div class="changelog">
Note: See TracChangeset
for help on using the changeset viewer.