Support » Themes and Templates » uploading media – remove auto link

  • Resolved noname1

    (@greyisgood)


    Hi!
    By default, adding an image to a post also adds a link to the it’s own file. I want to remove this, so no link is ever added.

    in wp-includes/media.php, if i change line 303:
    function wp_get_attachment_image_src($attachment_id, $size=’thumbnail’, $icon = false) {
    to
    function wp_get_attachment_image_src( , $size=’thumbnail’, $icon = false) {
    will that do the trick?
    m

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘uploading media – remove auto link’ is closed to new replies.