WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Media File Renamer] incorrect GUID fix {serious bug}

[Resolved] [Plugin: Media File Renamer] incorrect GUID fix {serious bug}

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Media File Renamer] incorrect GUID fix {serious bug}’ is closed to new replies.