In the Media upload popup page, how do I set the attachment link to none and hide it in Wordpress version 3.5? The following filter worked fine in earlier versions of WP:
function my_attachment_fields_edit($form_fields,$post){
// Set attachment link to none and hide it.
$html = "<input type='hidden' name='attachments[".$post->ID."][url]' value=''/>";
$form_fields['url']['html'] = $html; //Replace html
$form_fields['url']['label'] = ''; //Remove label
$form_fields['url']['helps'] ='';//Remove help text
return $form_fields;
}
add_filter('attachment_fields_to_edit', 'my_attachment_fields_edit', 10, 2);
This was actually an excellent filter posted by someone here I believe. Do anyone know how to accomplish this in WP 3.5?

Nonethen please post it. Maybe it does a check on every page load? And maybe we can do a good olddisplay:nonein the stylesheet for that dropdown list... – Christine Cooper Dec 20 '12 at 14:35wp_usermetatable in the record:wp_user-settings. Theurlbuttonis the option you need to set toNone. – Shaun Bent Dec 20 '12 at 16:45