My plugin uses
media_send_to_editor to let the user select from the (old) media uploader whether the file selected should be inserted as a link (default behavior) or as an attribute of a shortcode my plugin uses. This functionality is now present in WP 3.5 beta 3 due to backward compatibility work, but it doesn't function properly.
I can fuss with how it works/doesn't work (initially it looks like my
media_send_to_editor filter isn't being fired at all), but I'd rather use native hooks/APIs as they are intended. I am not actually saving any attachment data but just letting them toggle whether they insert a link or a pre-formed shortcode that includes the link. Is there a "more proper" way to do this in WP 3.5 in light of the new media handling?
Is the "Add Media" button expected to replace the "Upload/Insert" in the final version?