Commit abdace2115 for wordpress.org
commit abdace211523405d9091651274886f3b05f05960
Author: audrasjb <audrasjb@git.wordpress.org>
Date: Fri May 30 16:26:37 2025 +0000
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.
Built from https://develop.svn.wordpress.org/trunk@60266
git-svn-id: http://core.svn.wordpress.org/trunk@59602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index 5c0b5d0b38..7d9fd638fb 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -3337,7 +3337,7 @@ function attachment_submitbox_metadata() {
$uploaded_by_link = get_edit_user_link( $author->ID );
}
?>
- <div class="misc-pub-section misc-pub-uploadedby">
+ <div class="misc-pub-section misc-pub-uploadedby word-wrap-break-word">
<?php if ( $uploaded_by_link ) { ?>
<?php _e( 'Uploaded by:' ); ?> <a href="<?php echo $uploaded_by_link; ?>"><strong><?php echo $uploaded_by_name; ?></strong></a>
<?php } else { ?>
diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php
index 86fe200f8d..4e7592bd74 100644
--- a/wp-includes/media-template.php
+++ b/wp-includes/media-template.php
@@ -443,7 +443,7 @@ function wp_print_media_templates() {
?>
</h2>
<div class="uploaded"><strong><?php _e( 'Uploaded on:' ); ?></strong> {{ data.dateFormatted }}</div>
- <div class="uploaded-by">
+ <div class="uploaded-by word-wrap-break-word">
<strong><?php _e( 'Uploaded by:' ); ?></strong>
<# if ( data.authorLink ) { #>
<a href="{{ data.authorLink }}">{{ data.authorName }}</a>
@@ -605,7 +605,7 @@ function wp_print_media_templates() {
<div class="centered">
<# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>
<img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt="" />
- <# } else if ( data.sizes ) {
+ <# } else if ( data.sizes ) {
if ( data.sizes.medium ) { #>
<img src="{{ data.sizes.medium.url }}" class="thumbnail" draggable="false" alt="" />
<# } else { #>
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 41bab5b442..d3a414054a 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.9-alpha-60265';
+$wp_version = '6.9-alpha-60266';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.