- function update_nickname () {
-
- var nickname = $('#nickname').val();
- var display_nickname = $('#display_nickname').val();
-
- if ( nickname == '' ) {
- $('#display_nickname').remove();
- }
- $('#display_nickname').val(nickname).html(nickname);
-
- }
-
- $(document).ready( function() {
- $('#nickname').blur(update_nickname);
- $('#pass1').val('').keyup( check_pass_strength );
- $('.color-palette').click(function(){$(this).siblings('input[name=admin_color]').attr('checked', 'checked')});
- });
-})(jQuery);
-</script>
-<?php
-}
-
-if ( $is_profile_page ) {
- add_action('admin_head', 'profile_js');
- wp_enqueue_script('jquery');
- wp_enqueue_script('password-strength-meter');
-}
-
-$title = $is_profile_page? __('Profile') : __('Edit User');
-if ( current_user_can('edit_users') && !$is_profile_page )
+$title = IS_PROFILE_PAGE ? __('Profile') : __('Edit User');
+if ( current_user_can('edit_users') && !IS_PROFILE_PAGE )