Skip to content

Commit d9d06c8

Browse files
committed
Media: Fix overflow of long user display names on Edit Media screen.
This changeset resolves an issue where long usernames in the media uploader modal would overflow their container. By adding the dedicated `word-wrap-break-word` class, usernames now properly break into multiple lines. Follow-up to [59834], [59835]. Props sainathpoojary, audrasjb, sabernhardt, renishsurani, SirLouen, valentingrenier. Fixes #63243. git-svn-id: https://develop.svn.wordpress.org/trunk@60266 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4825d0a commit d9d06c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wp-admin/includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3337,7 +3337,7 @@ function attachment_submitbox_metadata() {
33373337
$uploaded_by_link = get_edit_user_link( $author->ID );
33383338
}
33393339
?>
3340-
<div class="misc-pub-section misc-pub-uploadedby">
3340+
<div class="misc-pub-section misc-pub-uploadedby word-wrap-break-word">
33413341
<?php if ( $uploaded_by_link ) { ?>
33423342
<?php _e( 'Uploaded by:' ); ?> <a href="<?php echo $uploaded_by_link; ?>"><strong><?php echo $uploaded_by_name; ?></strong></a>
33433343
<?php } else { ?>

src/wp-includes/media-template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ function wp_print_media_templates() {
443443
?>
444444
</h2>
445445
<div class="uploaded"><strong><?php _e( 'Uploaded on:' ); ?></strong> {{ data.dateFormatted }}</div>
446-
<div class="uploaded-by">
446+
<div class="uploaded-by word-wrap-break-word">
447447
<strong><?php _e( 'Uploaded by:' ); ?></strong>
448448
<# if ( data.authorLink ) { #>
449449
<a href="{{ data.authorLink }}">{{ data.authorName }}</a>
@@ -605,7 +605,7 @@ function wp_print_media_templates() {
605605
<div class="centered">
606606
<# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>
607607
<img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt="" />
608-
<# } else if ( data.sizes ) {
608+
<# } else if ( data.sizes ) {
609609
if ( data.sizes.medium ) { #>
610610
<img src="{{ data.sizes.medium.url }}" class="thumbnail" draggable="false" alt="" />
611611
<# } else { #>

0 commit comments

Comments
 (0)