WordPress.org

Make WordPress Core

Ticket #21217: 21217.patch

File 21217.patch, 496 bytes (added by SergeyBiryukov, 8 years ago)
  • wp-admin/includes/media.php

     
    10641064        $toggle_on  = __( 'Show' );
    10651065        $toggle_off = __( 'Hide' );
    10661066
    1067         $filename = esc_html( basename( $post->guid ) );
     1067        $filename = esc_html( end( explode( '/', $post->guid ) ) );
    10681068        $title = esc_attr( $post->post_title );
    10691069
    10701070        if ( $_tags = get_the_tags( $attachment_id ) ) {