you are absolutely right - the _wp_attached_file data used to be the full path, and now it looks like its just the path relative to something like WP_CONTENT_DIR/uploads.
let me check through the 2.7 code - it has to be back compatible with a full path starting with a /, as upgrading doesn't update old values.
so i probably just need to detect these new relative paths and tack on the base. Let me have a bash at that.
(trouble is i don't have a 2.7 on a standard setup to test this on - just a local MAMP setup that sets up some global PHP vars a little awkwardly.)
[edit update]
well that was easy enough to find! the get_attached_file function has been updated in 2.7 to reflect this - and as i should have been using that all along in my code. it's a simple change that will stay compatible with existing versions. I'll update the repository soon, but if you want to try it yourself...
find line 38:
$attachment_path=get_post_meta($id,"_wp_attached_file",true);
replace with:
$attachment_path=get_attached_file( $id, true);
[edit update 2]
well that half fixes 2.7ness. There is at least one more issue i can see -- the relocate menu doesn't work on the page you get when you have just uploaded a new asset.
that needs an extra line about line 86
if ( strpos($_SERVER['REQUEST_URI'], "/wp-admin/media-upload.php")===false
&& strpos($_SERVER['REQUEST_URI'], "/wp-admin/upload.php")===false
&& strpos($_SERVER['REQUEST_URI'], "/wp-admin/media.php")===false )
return;
needs an extra line
if ( strpos($_SERVER['REQUEST_URI'], "/wp-admin/media-upload.php")===false
&& strpos($_SERVER['REQUEST_URI'], "/wp-admin/upload.php")===false
&& strpos($_SERVER['REQUEST_URI'], "/wp-admin/media-new.php")===false
&& strpos($_SERVER['REQUEST_URI'], "/wp-admin/media.php")===false )
return;
basically i need to look at this properly to get it 2.7'd up. Feel free to post more issues!