Support » Plugin: Media File Renamer (Auto Rename) » Fix for GUID

  • Resolved Art Project Group

    (@artprojectgroup)


    Your great plugin has a bug. The GUID camp of wp_post table, doesn’t updated with correct permalink.

    In media-file-renamer.php, on line number 615 you have:

    if ( $meta ) {
    		$post['guid'] = $meta["url"];
    	}

    And you must change for this:

    if ( $meta ) {
    		$upload_dir = wp_upload_dir();
    		$post['guid'] = $upload_dir['url'] . "/". $meta["url"];
    	}

    With this little change, the GUID is updated fine.

    Thanks a lot for your great jog, and I wait this fix on your next update.

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

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fix for GUID’ is closed to new replies.