user edit form validation fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@7254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-11 22:03:05 +00:00
parent 0344154048
commit 399da81504
1 changed files with 7 additions and 11 deletions

View File

@ -161,7 +161,7 @@ foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
<p><label> <p><label>
<input name="admin_color" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, get_user_option('admin_color')); ?> /> <input name="admin_color" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, get_user_option('admin_color')); ?> />
<?php echo $color_info->name ?> <?php echo $color_info->name ?>
</label> </label></p>
<table> <table>
<tr> <tr>
<?php <?php
@ -170,9 +170,9 @@ foreach ( $color_info->colors as $color ): ?>
<?php endforeach; ?> <?php endforeach; ?>
</tr> </tr>
</table> </table>
</p>
<?php endforeach; ?> <?php endforeach; ?>
</td> </td>
</tr>
</table> </table>
@ -265,7 +265,7 @@ echo $role_list . '</select></td></tr>';
<tr> <tr>
<th><label for="url"><?php _e('Website') ?></label></th> <th><label for="url"><?php _e('Website') ?></label></th>
<td><input type="text" name="url" id="url" value="<?php echo $profileuser->user_url ?>" /></td> <td><input type="text" name="url" id="url" value="<?php echo $profileuser->user_url ?>" /></td>
</th> </tr>
<tr> <tr>
<th><label for="aim"><?php _e('AIM') ?></label></th> <th><label for="aim"><?php _e('AIM') ?></label></th>
@ -305,8 +305,8 @@ if ( $show_password_fields ) :
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
</table>
<?php endif; ?> <?php endif; ?>
</table>
<?php <?php
if ( $is_profile_page ) { if ( $is_profile_page ) {
@ -316,11 +316,9 @@ if ( $show_password_fields ) :
} }
?> ?>
<?php if (count($profileuser->caps) > count($profileuser->roles)): ?>
<br style="clear: both;" /> <br style="clear: both;" />
<table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform"> <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
<?php
if(count($profileuser->caps) > count($profileuser->roles)):
?>
<tr> <tr>
<th scope="row"><?php _e('Additional Capabilities:') ?></th> <th scope="row"><?php _e('Additional Capabilities:') ?></th>
<td><?php <td><?php
@ -334,11 +332,9 @@ if ( $show_password_fields ) :
echo $output; echo $output;
?></td> ?></td>
</tr> </tr>
<?php
endif;
?>
</table> </table>
</table> <?php endif; ?>
<p class="submit"> <p class="submit">
<input type="hidden" name="action" value="update" /> <input type="hidden" name="action" value="update" />
<input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id; ?>" /> <input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id; ?>" />