WordPress.org

Make WordPress Core

Changeset 22367


Ignore:
Timestamp:
11/05/12 14:33:56 (2 years ago)
Author:
ryan
Message:

Use wp_basename() instead of basename() so that multibyte characters are not stomped. Props SergeyBiryukov. fixes #21217

File:
1 edited

Legend:

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

    r22364 r22367  
    10731073    $toggle_off = __( 'Hide' ); 
    10741074 
    1075     $filename = esc_html( basename( $post->guid ) ); 
     1075    $filename = esc_html( wp_basename( $post->guid ) ); 
    10761076    $title = esc_attr( $post->post_title ); 
    10771077 
Note: See TracChangeset for help on using the changeset viewer.