Heb je het probleem ook zoals hier beschreven? Omdat dit het enige is waarom ik versie 2.6 nog links laat liggen, heb ik zelf de code maar aangepast.
In het bestand wp-adminincludesmedia.php moet je het volgende:
633 <input type='text' name='attachments[$post->ID][url]' value='" . attribute_escape($file) . "'><br />
634 <button type='button' class='button url-$post->ID' value=''>" . __('None') . "</button>
635 <button type='button' class='button url-$post->ID' value='" . attribute_escape($file) . "'>" . __('File URL') . "</button>
636 <button type='button' class='button url-$post->ID' value='" . attribute_escape($link) . "'>" . __('Post URL') . "</button>
637 <script type='text/javascript'>
638 jQuery('button.url-$post->ID').bind('click', function(){jQuery(this).siblings('input').val(this.value);});
639 </script>n",
640 'helps' => __('Enter a link URL or click above for presets.'),
vervangen door deze tekst:
633 <input type='text' name='attachments[$post->ID][url]' value='" . attribute_escape($file) . "'><br>
634 <button type='button' class='button url-$post->ID' onclick='document.getElementById("attachments[$post->ID][url]").value=""'>" . __('None') . "</button>
635 <button type='button' class='button url-$post->ID' onclick='document.getElementById("attachments[$post->ID][url]").value="" . attribute_escape($file) . ""'>" . __('File URL') ."</button>
636 <button type='button' class='button url-$post->ID' onclick='document.getElementById("attachments[$post->ID][url]").value="" . attribute_escape($link) . ""'>" . __('Post URL') ."</button>
637 n",
638Â
639Â
640 'helps' => __('Enter a link URL or click above for presets.'),
Dat is alles.
Je kunt ook het gewijzigde bestand downloaden.
[reusable:5]