WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/21/2016 02:23:11 PM (4 years ago)
Author:
nbachiyski
Message:

Admin: Escape attachment name in case it contains special characters

Merge of [37774] to the 4.3 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3/src/wp-admin/includes/class-wp-media-list-table.php

    r33270 r37786  
    362362            <?php _media_states( $post ); ?>
    363363        </strong>
    364         <p class="filename"><span class="screen-reader-text"><?php _e( 'File name:' ); ?> </span><?php echo wp_basename( $post->guid ); ?></p>
     364        <p class="filename"><span class="screen-reader-text"><?php _e( 'File name:' ); ?> </span><?php echo esc_html( wp_basename( $post->guid ) ); ?></p>
    365365        <?php
    366366    }
Note: See TracChangeset for help on using the changeset viewer.