mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Media: Prevent URLs from overflowing their container in the media editor.
This changeset also introduces the `.word-wrap-break-word` class which can be used to apply `word-wrap: break-word` to admin elements when needed. Props mitogh, costdev, kapilpaul, alamgircsebd, sabernhardt, anantajitjg, afercia, circlecube, SergeyBiryukov, rafiahmedd, audrasjb. Fixes #55393. git-svn-id: https://develop.svn.wordpress.org/trunk@53777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0d7487bad9
commit
e5bd74cad8
@ -949,6 +949,7 @@ a#remove-post-thumbnail:hover,
|
||||
padding: 6px 10px 8px;
|
||||
}
|
||||
|
||||
.word-wrap-break-word,
|
||||
.misc-pub-filename {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
@ -3469,7 +3469,7 @@ function attachment_submitbox_metadata() {
|
||||
|
||||
if ( ! empty( $meta['original_image'] ) ) {
|
||||
?>
|
||||
<div class="misc-pub-section misc-pub-original-image">
|
||||
<div class="misc-pub-section misc-pub-original-image word-wrap-break-word">
|
||||
<?php _e( 'Original image:' ); ?>
|
||||
<a href="<?php echo esc_url( wp_get_original_image_url( $attachment_id ) ); ?>">
|
||||
<?php echo esc_html( wp_basename( wp_get_original_image_path( $attachment_id ) ) ); ?>
|
||||
|
||||
@ -438,8 +438,10 @@ function wp_print_media_templates() {
|
||||
<# } #>
|
||||
|
||||
<# if ( data.originalImageURL && data.originalImageName ) { #>
|
||||
<?php _e( 'Original image:' ); ?>
|
||||
<a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
|
||||
<div class="word-wrap-break-word">
|
||||
<?php _e( 'Original image:' ); ?>
|
||||
<a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
|
||||
</div>
|
||||
<# } #>
|
||||
<# } #>
|
||||
|
||||
@ -661,8 +663,10 @@ function wp_print_media_templates() {
|
||||
<# } #>
|
||||
|
||||
<# if ( data.originalImageURL && data.originalImageName ) { #>
|
||||
<?php _e( 'Original image:' ); ?>
|
||||
<a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
|
||||
<div class="word-wrap-break-word">
|
||||
<?php _e( 'Original image:' ); ?>
|
||||
<a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
|
||||
</div>
|
||||
<# } #>
|
||||
|
||||
<# if ( data.can.save && data.sizes ) { #>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user