Ok, it looks like the major issue is the code sync between Git and SVN. Download the latest from Github for now, it works: https://github.com/jchristopher/attachments
Edit works … but getting the attachments was still broken. Seems to be a null check in the get_attachments function.
Here is the fix (line 970-ish in class.attachments.php)
function get_attachments( $instance = '', $post_id = null )
{
global $post;
if (is_null($post_id))
{
if( is_null( $post_id ) && is_object( $post ) && isset( $post->ID ) )
{
$post_id = $post->ID;
}
elseif( isset( $_GET['post'] ) )
{
$post_id = intval( $_GET['post'] );
}
else
{
// no post ID, nothing to do...
return;
}
}
I think that last fix will do the trick … glad we got this resolved!
Attachments 3.0.1 was just pushed. Update the plugin and see if you still run into issues. You will most likely need to clear your browser’s cache and cookies: http://support.wordpress.com/browser-issues/#clear-your-cache-and-cookies
Hey guys so sorry for these issues. JR helped me discover that I completely borked the sync from git to svn before committing. Everything should be ironed out in 3.0.1.