WordPress.org

Ready to get started?Download WordPress

Forums

Media File Renamer
[resolved] incorrect GUID fix {serious bug} (4 posts)

  1. alx359
    Member
    Posted 2 years ago #

    For post_type=attachments, [guid] must be [url] not something else.

    Incorrect data breaks some galleries and anything else that would expect to get the url of the file from there.

    in media-file-renamer\media-file-renamer.php li~106

    // The GUID should be updated, let's use the post id and the sanitized title.
    //[alx359] That's not true for post_type=attachments|post_mime_type=image/*. The expected GUID here is [url]
    //$post['guid'] = $sanitized_media_title . " [" . $post['ID'] . "]";
    $post['guid'] = $meta["url"];

    http://wordpress.org/extend/plugins/media-file-renamer/

  2. Jordy Meow
    Member
    Plugin Author

    Posted 2 years ago #

    You're right and I'll therefore update the plugin to work this way now. Thanks a lot!

  3. alx359
    Member
    Posted 2 years ago #

    Thanks to you, and your so useful plugin!

  4. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    I'm closing the topic as it is resolved. Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic