mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
So fresh and so clean, clean.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d6d149bbb9
commit
8734e3d1bf
@ -74,11 +74,11 @@ function edit_user( $user_id = 0 ) {
|
|||||||
$user->rich_editing = 'false';
|
$user->rich_editing = 'false';
|
||||||
|
|
||||||
if ( !$update )
|
if ( !$update )
|
||||||
$user->admin_color = 'classic'; // Default to classic for new users.
|
$user->admin_color = 'fresh'; // Default to fresh for new users.
|
||||||
else if ( isset( $_POST['admin_color'] ) )
|
else if ( isset( $_POST['admin_color'] ) )
|
||||||
$user->admin_color = $_POST['admin_color'];
|
$user->admin_color = $_POST['admin_color'];
|
||||||
else
|
else
|
||||||
$user->admin_color = 'classic';
|
$user->admin_color = 'fresh';
|
||||||
|
|
||||||
$errors = new WP_Error();
|
$errors = new WP_Error();
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ include ('admin-header.php');
|
|||||||
<?php
|
<?php
|
||||||
$current_color = get_user_option('admin_color');
|
$current_color = get_user_option('admin_color');
|
||||||
if ( empty($current_color) )
|
if ( empty($current_color) )
|
||||||
$current_color = 'classic';
|
$current_color = 'fresh';
|
||||||
foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
|
foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
|
||||||
<div class="color-option"><input name="admin_color" id="admin_color_<?php echo $color; ?>" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, $current_color); ?> />
|
<div class="color-option"><input name="admin_color" id="admin_color_<?php echo $color; ?>" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, $current_color); ?> />
|
||||||
<table class="color-palette">
|
<table class="color-palette">
|
||||||
|
@ -1117,7 +1117,7 @@ function wp_admin_css_uri( $file = 'wp-admin' ) {
|
|||||||
global $_wp_admin_css_colors;
|
global $_wp_admin_css_colors;
|
||||||
$color = get_user_option('admin_color');
|
$color = get_user_option('admin_color');
|
||||||
if ( empty($color) || !isset($_wp_admin_css_colors[$color]) )
|
if ( empty($color) || !isset($_wp_admin_css_colors[$color]) )
|
||||||
$color = 'classic';
|
$color = 'fresh';
|
||||||
$color = $_wp_admin_css_colors[$color];
|
$color = $_wp_admin_css_colors[$color];
|
||||||
$_file = $color->url;
|
$_file = $color->url;
|
||||||
} else {
|
} else {
|
||||||
|
@ -155,7 +155,7 @@ function wp_insert_user($userdata) {
|
|||||||
$rich_editing = 'true';
|
$rich_editing = 'true';
|
||||||
|
|
||||||
if ( empty($admin_color) )
|
if ( empty($admin_color) )
|
||||||
$admin_color = 'classic';
|
$admin_color = 'fresh';
|
||||||
$admin_color = preg_replace('|[^a-z0-9 _.\-@]|i', '', $admin_color);
|
$admin_color = preg_replace('|[^a-z0-9 _.\-@]|i', '', $admin_color);
|
||||||
|
|
||||||
if ( empty($user_registered) )
|
if ( empty($user_registered) )
|
||||||
|
@ -15,7 +15,7 @@ function login_header($title = 'Login', $message = '', $wp_error = '') {
|
|||||||
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
|
||||||
<?php
|
<?php
|
||||||
wp_admin_css( 'css/login' );
|
wp_admin_css( 'css/login' );
|
||||||
wp_admin_css( 'css/colors-classic' );
|
wp_admin_css( 'css/colors-fresh' );
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function focusit() {
|
function focusit() {
|
||||||
|
Loading…
Reference in New Issue
Block a user