Make WordPress Core


Ignore:
Timestamp:
07/25/2022 06:09:26 PM (21 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r53768 r53777  
    34703470    if ( ! empty( $meta['original_image'] ) ) {
    34713471        ?>
    3472         <div class="misc-pub-section misc-pub-original-image">
     3472        <div class="misc-pub-section misc-pub-original-image word-wrap-break-word">
    34733473            <?php _e( 'Original image:' ); ?>
    34743474            <a href="<?php echo esc_url( wp_get_original_image_url( $attachment_id ) ); ?>">
Note: See TracChangeset for help on using the changeset viewer.