Make WordPress Core


Ignore:
Timestamp:
07/08/2013 01:55:50 PM (11 years ago)
Author:
nacin
Message:

Use wp_basename() in newer media code for filenames to avoid encoding issues on display. props SergeyBiryukov, fixes #23267.

File:
1 edited

Legend:

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

    r24572 r24585  
    16071607        'id'          => $attachment->ID,
    16081608        'title'       => $attachment->post_title,
    1609         'filename'    => basename( $attachment->guid ),
     1609        'filename'    => wp_basename( $attachment->guid ),
    16101610        'url'         => $attachment_url,
    16111611        'link'        => get_attachment_link( $attachment->ID ),
Note: See TracChangeset for help on using the changeset viewer.