mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Use wp_basename() instead of basename() so that multibyte characters are not stomped. Props SergeyBiryukov. fixes #21217
git-svn-id: http://core.svn.wordpress.org/trunk@22367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6c9f23bbab
commit
53c0024945
@ -1072,7 +1072,7 @@ function get_media_item( $attachment_id, $args = null ) {
|
|||||||
$toggle_on = __( 'Show' );
|
$toggle_on = __( 'Show' );
|
||||||
$toggle_off = __( 'Hide' );
|
$toggle_off = __( 'Hide' );
|
||||||
|
|
||||||
$filename = esc_html( basename( $post->guid ) );
|
$filename = esc_html( wp_basename( $post->guid ) );
|
||||||
$title = esc_attr( $post->post_title );
|
$title = esc_attr( $post->post_title );
|
||||||
|
|
||||||
if ( $_tags = get_the_tags( $attachment_id ) ) {
|
if ( $_tags = get_the_tags( $attachment_id ) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user