Ticket #16020: 16020.2.diff
File 16020.2.diff, 21.9 KB (added by , 13 years ago) |
---|
-
wp-includes/user.php
1309 1309 } 1310 1310 $display_name = apply_filters( 'pre_user_display_name', $display_name ); 1311 1311 1312 if ( empty( $avatar_type ) || $avatar_type != 'custom' ) 1313 $avatar_type = 'gravatar'; 1314 1315 if ( empty( $custom_avatar ) ) 1316 $custom_avatar = ''; 1317 1312 1318 if ( empty($description) ) 1313 1319 $description = ''; 1314 1320 $description = apply_filters('pre_user_description', $description); … … 1475 1481 * @return array 1476 1482 */ 1477 1483 function _get_additional_user_keys( $user ) { 1478 $keys = array( 'first_name', 'last_name', 'nickname', 'description', 'rich_editing', 'comment_shortcuts', 'admin_color', 'use_ssl', 'show_admin_bar_front' );1484 $keys = array( 'first_name', 'last_name', 'nickname', 'description', 'rich_editing', 'comment_shortcuts', 'admin_color', 'use_ssl', 'show_admin_bar_front', 'avatar_type', 'custom_avatar' ); 1479 1485 return array_merge( $keys, array_keys( _wp_get_user_contactmethods( $user ) ) ); 1480 1486 } 1481 1487 -
wp-includes/formatting.php
2787 2787 $value = absint( $value ); 2788 2788 break; 2789 2789 2790 case 'avatar_size': 2791 $value = absint( $value ); 2792 if ( $value < 1 ) 2793 $value = 1; 2794 elseif ( $value > 512 ) 2795 $value = 512; 2796 break; 2797 2790 2798 case 'posts_per_page': 2791 2799 case 'posts_per_rss': 2792 2800 $value = (int) $value; -
wp-includes/pluggable.php
1579 1579 * @param int $size Size of the avatar image 1580 1580 * @param string $default URL to a default image to use if no avatar is available 1581 1581 * @param string $alt Alternate text to use in image tag. Defaults to blank 1582 * @param string $avatar_type Override user preference (Used in user-edit.php) 1582 1583 * @return string <img> tag for the user's avatar 1583 1584 */ 1584 function get_avatar( $id_or_email, $size = ' 96', $default = '', $alt = false) {1585 function get_avatar( $id_or_email, $size = '', $default = '', $alt = false, $avatar_type = '' ) { 1585 1586 if ( ! get_option('show_avatars') ) 1586 1587 return false; 1587 1588 … … 1590 1591 else 1591 1592 $safe_alt = esc_attr( $alt ); 1592 1593 1593 if ( !is_numeric($size) ) 1594 $size = '96'; 1594 if ( empty( $size ) || ! is_numeric( $size ) ) { 1595 $size = get_option( 'avatar_size' ); 1596 } else { 1597 $size = absint( $size ); 1595 1598 1599 if ( $size < 1 ) 1600 $size = 1; 1601 elseif ( $size > 512 ) 1602 $size = 512; 1603 } 1604 1605 if ( ! empty( $avatar_type ) ) 1606 if ( $avatar_type != 'custom' ) 1607 $avatar_type = 'gravatar'; 1608 1596 1609 $email = ''; 1597 1610 if ( is_numeric($id_or_email) ) { 1598 1611 $id = (int) $id_or_email; … … 1617 1630 $email = $id_or_email; 1618 1631 } 1619 1632 1633 if ( isset( $user ) ) { 1634 if ( empty( $avatar_type ) ) 1635 $avatar_type = $user->avatar_type; 1636 1637 if ( ! $user->has_custom_avatar ) 1638 $avatar_type = 'gravatar'; 1639 } else { 1640 $avatar_type = 'gravatar'; 1641 } 1642 1620 1643 if ( empty($default) ) { 1621 1644 $avatar_default = get_option('avatar_default'); 1622 1645 if ( empty($avatar_default) ) … … 1650 1673 elseif ( strpos($default, 'http://') === 0 ) 1651 1674 $default = add_query_arg( 's', $size, $default ); 1652 1675 1653 if ( !empty($email) ) {1654 $out = "$host/avatar/"; 1655 $out .= $email_hash;1656 $ out .= '?s='.$size;1657 $ out .= '&d=' . urlencode( $default);1676 $img = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />"; 1677 1678 if ( $avatar_type == 'custom' ) { 1679 $avatar_rating = get_option( 'avatar_rating' ); 1680 $custom_avatar_rating = get_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar_rating', true ); 1658 1681 1682 $ratings['G'] = 1; 1683 $ratings['PG'] = 2; 1684 $ratings['R'] = 3; 1685 $ratings['X'] = 4; 1686 1687 if ( $ratings[ $custom_avatar_rating ] <= $ratings[ $avatar_rating ] ) { 1688 $custom_avatar = get_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar', true ); 1689 1690 if ( empty( $custom_avatar[ $size ] ) ) { 1691 $upload_dir = wp_upload_dir(); 1692 $url = wp_get_attachment_image_src( $user->custom_avatar, 'full' ); 1693 $url = $url[0]; 1694 $file = str_replace( $upload_dir['baseurl'], $upload_dir['basedir'], $url ); 1695 $file = image_resize( $file, $size, $size, true ); 1696 1697 if ( is_wp_error( $file ) ) { 1698 $src = $url; 1699 } else { 1700 $custom_avatar[ $size ] = str_replace( $upload_dir['basedir'], $upload_dir['baseurl'], $file ); 1701 $src = $custom_avatar[ $size ]; 1702 1703 update_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar', $custom_avatar ); 1704 } 1705 } else { 1706 $src = $custom_avatar[ $size ]; 1707 } 1708 1709 $img = "<img alt='{$safe_alt}' src='{$src}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />"; 1710 } 1711 } else if ( !empty($email) ) { 1712 $src = "$host/avatar/"; 1713 $src .= $email_hash; 1714 $src .= '?s='.$size; 1715 $src .= '&d=' . urlencode( $default ); 1716 1659 1717 $rating = get_option('avatar_rating'); 1660 1718 if ( !empty( $rating ) ) 1661 $ out.= "&r={$rating}";1719 $src .= "&r={$rating}"; 1662 1720 1663 $avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />"; 1664 } else { 1665 $avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />"; 1721 $img = "<img alt='{$safe_alt}' src='{$src}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />"; 1666 1722 } 1667 1723 1668 return apply_filters('get_avatar', $ avatar, $id_or_email, $size, $default, $alt);1724 return apply_filters('get_avatar', $img, $id_or_email, $size, $default, $alt, $avatar_type); 1669 1725 } 1670 1726 endif; 1671 1727 -
wp-admin/includes/misc.php
582 582 <?php 583 583 } 584 584 585 /** 586 * Get additional image sizes 587 * 588 * @since 3.5.0 589 * @return array Array of additional image sizes 590 */ 591 function get_additional_image_sizes() { 592 global $_wp_additional_image_sizes; 593 594 $image_sizes = $_wp_additional_image_sizes; 595 596 $image_sizes['thumbnail'] = array( 597 'width' => get_option( 'thumbnail_size_w' ), 598 'height' => get_option( 'thumbnail_size_h' ), 599 'crop' => ( get_option( 'thumbnail_crop' ) == '1' ) ? true : false 600 ); 601 602 $image_sizes['medium'] = array( 603 'width' => get_option( 'medium_size_w' ), 604 'height' => get_option( 'medium_size_h' ), 605 'crop' => false 606 ); 607 608 $image_sizes['large'] = array( 609 'width' => get_option( 'large_size_w' ), 610 'height' => get_option( 'large_size_h' ), 611 'crop' => false 612 ); 613 614 return $image_sizes; 615 } 616 617 /** 618 * Delete a custom avatar 619 * 620 * @param int $attachment_id An attachment ID 621 * @since 3.5.0 622 */ 623 function delete_custom_avatar($attachment_id) { 624 $upload_dir = wp_upload_dir(); 625 $custom_avatar = get_post_meta( $attachment_id, '_wp_attachment_custom_avatar', true ); 626 627 // Cleanup 628 if ( is_array( $custom_avatar ) ) { 629 $image_sizes = get_additional_image_sizes(); 630 631 // Skip registered image sizes 632 foreach ($image_sizes as $image_size) 633 if ( $image_size['width'] == $image_size['height'] && $image_size['crop'] == true ) 634 unset( $custom_avatar[ $image_size['width'] ] ); 635 636 foreach ( $custom_avatar as $file ) { 637 $file = str_replace( $upload_dir['baseurl'], $upload_dir['basedir'], $file ); 638 @unlink( $file ); 639 } 640 } 641 642 delete_post_meta( $attachment_id, '_wp_attachment_custom_avatar' ); 643 delete_post_meta( $attachment_id, '_wp_attachment_custom_avatar_rating' ); 644 delete_post_meta( $attachment_id, '_wp_attachment_is_custom_avatar' ); 645 646 $args = array( 647 'meta_key' => 'custom_avatar', 648 'meta_value' => $attachment_id 649 ); 650 651 $users = get_users( $args ); 652 653 foreach ($users as $user) { 654 // Update the user meta-data 655 update_user_meta( $user->ID, 'avatar_type', 'gravatar' ); 656 delete_user_meta( $user->ID, 'custom_avatar' ); 657 } 658 } 659 660 add_action( 'delete_attachment', 'delete_custom_avatar' ); 661 585 662 function _ipad_meta() { 586 663 if ( wp_is_mobile() ) { 587 664 ?> -
wp-admin/includes/schema.php
482 482 483 483 // 3.5 484 484 'link_manager_enabled' => 0, 485 'avatar_size' => 96 485 486 ); 486 487 487 488 // 3.3 -
wp-admin/includes/template.php
1518 1518 $media_states = array(); 1519 1519 $stylesheet = get_option('stylesheet'); 1520 1520 1521 $meta_avatar = get_post_meta( $post->ID, '_wp_attachment_is_custom_avatar', true ); 1522 if ( ! empty( $meta_avatar ) ) 1523 $media_states[] = __( 'Avatar Image' ); 1524 1521 1525 if ( current_theme_supports( 'custom-header') ) { 1522 1526 $meta_header = get_post_meta($post->ID, '_wp_attachment_is_custom_header', true ); 1523 1527 if ( ! empty( $meta_header ) && $meta_header == $stylesheet ) … … 1536 1540 $state_count = count( $media_states ); 1537 1541 $i = 0; 1538 1542 echo ' - '; 1543 echo '<span class="post-state">'; 1539 1544 foreach ( $media_states as $state ) { 1540 1545 ++$i; 1541 1546 ( $i == $state_count ) ? $sep = '' : $sep = ', '; 1542 echo "<span class='post-state'>$state$sep</span>";1547 echo $state . $sep; 1543 1548 } 1549 echo '</span>'; 1544 1550 } 1545 1551 } 1546 1552 -
wp-admin/includes/user.php
94 94 $user->rich_editing = isset( $_POST['rich_editing'] ) && 'false' == $_POST['rich_editing'] ? 'false' : 'true'; 95 95 $user->admin_color = isset( $_POST['admin_color'] ) ? sanitize_text_field( $_POST['admin_color'] ) : 'fresh'; 96 96 $user->show_admin_bar_front = isset( $_POST['admin_bar_front'] ) ? 'true' : 'false'; 97 $user->avatar_type = isset( $_POST['avatar_type'] ) ? sanitize_text_field( $_POST['avatar_type'] ) : 'gravatar'; 98 99 if ( isset( $userdata->custom_avatar ) ) { 100 $user->custom_avatar = $userdata->custom_avatar; 101 $custom_avatar_rating = isset( $_POST['custom_avatar_rating'] ) ? sanitize_text_field( $_POST['custom_avatar_rating'] ) : 'G'; 102 103 // Update the user meta-data 104 update_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar_rating', $custom_avatar_rating ); 105 } 106 107 // Add a new avatar 108 if ( isset( $_POST['upload-avatar'] ) && $_POST['upload-avatar'] ) { 109 $upload_dir = wp_upload_dir(); 110 111 // Reset the current avatar 112 if ( isset( $user->custom_avatar ) ) { 113 $custom_avatar = get_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar', true ); 114 115 // Cleanup 116 if ( is_array( $custom_avatar ) ) { 117 $image_sizes = get_additional_image_sizes(); 118 119 // Skip registered image sizes 120 foreach ($image_sizes as $image_size) 121 if ( $image_size['width'] == $image_size['height'] && $image_size['crop'] == true ) 122 unset( $custom_avatar[ $image_size['width'] ] ); 123 124 foreach ( $custom_avatar as $file ) { 125 $file = str_replace( $upload_dir['baseurl'], $upload_dir['basedir'], $file ); 126 @unlink( $file ); 127 } 128 } 129 130 delete_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar' ); 131 delete_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar_rating' ); 132 delete_post_meta( $user->custom_avatar, '_wp_attachment_is_custom_avatar' ); 133 } 134 135 $overrides = array( 'test_form' => false ); 136 $file = wp_handle_upload( $_FILES['import'], $overrides ); 137 138 if ( isset( $file['error'] ) ) 139 wp_die( $file['error'], __( 'Image Upload Error' ) ); 140 141 $url = $file['url']; 142 $type = $file['type']; 143 $file = $file['file']; 144 $filename = basename($file); 145 146 // Construct the object array 147 $object = array( 148 'guid' => $url, 149 'post_content' => $url, 150 'post_mime_type' => $type, 151 'post_title' => $filename 152 ); 153 154 // Save the data 155 $attachment_id = wp_insert_attachment( $object, $file ); 156 157 // Add the attachment meta-data 158 wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) ); 159 160 // Resize the avatar image to default size 161 $size = get_option( 'avatar_size' ); 162 $file = str_replace( $upload_dir['baseurl'], $upload_dir['basedir'], $url ); 163 $file = image_resize( $file, $size, $size, true ); 164 $custom_avatar = array(); 165 166 if ( ! is_wp_error( $file ) ) { 167 $custom_avatar[ $size ] = str_replace( $upload_dir['basedir'], $upload_dir['baseurl'], $file ); 168 } 169 170 update_post_meta( $attachment_id, '_wp_attachment_custom_avatar', $custom_avatar ); 171 update_post_meta( $attachment_id, '_wp_attachment_custom_avatar_rating', 'G' ); 172 update_post_meta( $attachment_id, '_wp_attachment_is_custom_avatar', true ); 173 174 // Add the user meta-data 175 $user->avatar_type = 'custom'; 176 $user->custom_avatar = $attachment_id; 177 } 178 179 // Remove the current avatar 180 if ( isset( $_POST['remove-avatar'] ) && $_POST['remove-avatar'] ) { 181 // Reset the current avatar 182 if ( isset( $user->custom_avatar ) ) { 183 $upload_dir = wp_upload_dir(); 184 $custom_avatar = get_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar', true ); 185 186 // Cleanup 187 if ( is_array( $custom_avatar ) ) { 188 $image_sizes = get_additional_image_sizes(); 189 190 // Skip registered image sizes 191 foreach ($image_sizes as $image_size) 192 if ( $image_size['width'] == $image_size['height'] && $image_size['crop'] == true ) 193 unset( $custom_avatar[ $image_size['width'] ] ); 194 195 foreach ( $custom_avatar as $file ) { 196 $file = str_replace( $upload_dir['baseurl'], $upload_dir['basedir'], $file ); 197 @unlink( $file ); 198 } 199 } 200 201 delete_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar' ); 202 delete_post_meta( $user->custom_avatar, '_wp_attachment_custom_avatar_rating' ); 203 delete_post_meta( $user->custom_avatar, '_wp_attachment_is_custom_avatar' ); 204 } 205 206 // Update the user meta-data 207 $user->avatar_type = 'gravatar'; 208 unset( $user->custom_avatar ); 209 } 97 210 } 98 211 99 212 $user->comment_shortcuts = isset( $_POST['comment_shortcuts'] ) && 'true' == $_POST['comment_shortcuts'] ? 'true' : ''; -
wp-admin/options-discussion.php
243 243 244 244 </fieldset></td> 245 245 </tr> 246 <tr valign="top"> 247 <th scope="row"><?php _e( 'Avatar Size' ) ?></th> 248 <td> 249 <fieldset> 250 <legend class="screen-reader-text"><span><?php _e( 'Avatar Size' ); ?></span></legend> 251 <label> 252 <?php _e( 'Size of the avatar image' ); ?> 253 <input name="avatar_size" type="number" step="1" min="0" value="<?php form_option( 'avatar_size' ); ?>" class="small-text" /> 254 </label> 255 </fieldset> 256 </td> 257 </tr> 246 258 <?php do_settings_fields('discussion', 'avatars'); ?> 247 259 </table> 248 260 -
wp-admin/options.php
60 60 61 61 $whitelist_options = array( 62 62 'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string' ), 63 'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'avatar_default', ' close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration' ),63 'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'avatar_default', 'avatar_size', 'close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration' ), 64 64 'media' => array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type', 'embed_autourls', 'embed_size_w', 'embed_size_h' ), 65 65 'reading' => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'show_on_front', 'page_on_front', 'page_for_posts', 'blog_public' ), 66 66 'writing' => array( 'default_post_edit_rows', 'use_smilies', 'default_category', 'default_email_category', 'use_balanceTags', 'default_link_category', 'default_post_format' ) -
wp-admin/user-edit.php
189 189 } ?> 190 190 </h2> 191 191 192 <form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action('user_edit_form_tag'); ?>>192 <form enctype="multipart/form-data" id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action('user_edit_form_tag'); ?>> 193 193 <?php wp_nonce_field('update-user_' . $user_id) ?> 194 194 <?php if ( $wp_http_referer ) : ?> 195 195 <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" /> … … 362 362 ?> 363 363 </table> 364 364 365 <h3><?php _e( 'Avatar' ); ?></h3> 366 367 <?php 368 $avatar_type = isset( $profileuser->avatar_type ) ? $profileuser->avatar_type : 'gravatar'; 369 370 if ( isset( $profileuser->custom_avatar ) ) { 371 $custom_avatar_rating = get_post_meta( $profileuser->custom_avatar, '_wp_attachment_custom_avatar_rating', true ); 372 $has_custom_avatar = get_post_meta( $profileuser->custom_avatar, '_wp_attachment_is_custom_avatar', true ); 373 } 374 375 $custom_avatar_rating = isset( $custom_avatar_rating ) ? $custom_avatar_rating : 'G'; 376 $has_custom_avatar = isset( $has_custom_avatar ) ? $has_custom_avatar : false; 377 ?> 378 379 <table class="form-table"> 380 <tr> 381 <th><?php _e( 'Display this avatar' ); ?></th> 382 <td class="avatar-picker"> 383 <fieldset> 384 <legend class="screen-reader-text"><span><?php _e( 'Display this avatar' ); ?></span></legend> 385 <label> 386 <input <?php checked( $avatar_type, 'gravatar' ); ?> name="avatar_type" type="radio" value="gravatar" /> 387 <?php echo get_avatar( $profileuser->ID, 32, '', false, 'gravatar' ); ?> 388 <?php _e( 'Gravatar' ); ?> 389 <span class="description"><?php _e( '<a href="http://codex.wordpress.org/How_to_Use_Gravatars_in_WordPress" target="_blank">More information</a>' ); ?></span> 390 </label> 391 <?php if ( $has_custom_avatar ) : ?> 392 <br /> 393 <label> 394 <input <?php checked( $avatar_type, 'custom' ); ?> name="avatar_type" type="radio" value="custom" /> 395 <?php echo get_avatar( $profileuser->ID, 32, '', false, 'custom' ); ?> 396 <?php _e( 'Custom' ); ?> 397 </label> 398 <?php endif; ?> 399 </fieldset> 400 </td> 401 </tr> 402 <?php if ( current_user_can( 'upload_files' ) ) : ?> 403 <tr> 404 <th><?php _e( 'Select Image' ); ?></th> 405 <td> 406 <fieldset> 407 <legend class="screen-reader-text"><span><?php _e( 'Select Image' ); ?></span></legend> 408 <label class="description" for="upload-avatar"><?php _e( 'Choose an image from your computer:' ); ?></label><br /> 409 <input name="import" type="file" /> 410 <?php submit_button( __( 'Upload' ), 'button', 'upload-avatar', false ); ?> 411 </fieldset> 412 </td> 413 </tr> 414 <?php endif; ?> 415 <?php if ( $has_custom_avatar ) : ?> 416 <tr> 417 <th><?php _e( 'Avatar Rating' ); ?></th> 418 <td> 419 <fieldset> 420 <legend class="screen-reader-text"><span><?php _e( 'Avatar Rating' ); ?></span></legend> 421 <?php 422 $ratings = array( 423 /* translators: Content suitability rating: http://bit.ly/89QxZA */ 424 'G' => __( 'G — Suitable for all audiences' ), 425 /* translators: Content suitability rating: http://bit.ly/89QxZA */ 426 'PG' => __( 'PG — Possibly offensive, usually for audiences 13 and above' ), 427 /* translators: Content suitability rating: http://bit.ly/89QxZA */ 428 'R' => __( 'R — Intended for adult audiences above 17' ), 429 /* translators: Content suitability rating: http://bit.ly/89QxZA */ 430 'X' => __( 'X — Even more mature than above' ) 431 ); 432 433 foreach ( $ratings as $key => $rating ) { 434 $selected = ( $custom_avatar_rating == $key ) ? 'checked="checked"' : ''; 435 echo '<label><input ' . $selected . ' name="custom_avatar_rating" type="radio" value="' . esc_attr( $key ) . '" /> ' . $rating . '</label><br />'; 436 }; 437 ?> 438 <span class="description"><?php _e( 'Choose a rating for your custom avatar.' ); ?></span> 439 </fieldset> 440 </td> 441 </tr> 442 <?php endif; ?> 443 <?php if ( $has_custom_avatar && current_user_can( 'upload_files' ) ) : ?> 444 <tr> 445 <th><?php _e( 'Remove Image' ); ?></th> 446 <td> 447 <legend class="screen-reader-text"><span><?php _e( 'Remove Image' ); ?></span></legend> 448 <?php submit_button( __( 'Remove Avatar Image' ), 'button', 'remove-avatar', false ); ?> 449 <span class="description"><?php _e( 'This will remove the avatar image. You will not be able to restore any customizations.' ); ?></span> 450 </td> 451 </tr> 452 <?php endif; ?> 453 </table> 454 365 455 <h3><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3> 366 456 367 457 <table class="form-table"> -
wp-admin/css/wp-admin.css
4789 4789 width: 15em; 4790 4790 } 4791 4791 4792 #profile-page .avatar-picker img { 4793 margin: 2px 0; 4794 vertical-align: middle; 4795 } 4796 4792 4797 #createuser .form-field input { 4793 4798 width: 25em; 4794 4799 }