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

  1. alx359
    Posted 5 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"];


  2. Jordy Meow
    Plugin Author

    Posted 5 years ago #

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

  3. alx359
    Posted 5 years ago #

    Thanks to you, and your so useful plugin!

  4. Jordy Meow
    Plugin Author

    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Media File Renamer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic