WordPress.org

Ready to get started?Download WordPress

Forums

YD FeedWordPress Content Filter
file name of a local_images (1 post)

  1. utaka
    Member
    Posted 2 years ago #

    Hi
    When a title name is Multi-byte , the file name of a local_images will be Multi-byte .

    I change

    $filename = sanitize_title( $title );
    $filename = preg_replace( '/[^a-zA-Z0-9_-]/', '-', $filename );

    to

    $filename = sha1( uniqid( mt_rand() , true ) );

    Thank you!

    http://wordpress.org/extend/plugins/yd-feedwordpress-content-filter/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic