WordPress.org

Ready to get started?Download WordPress

Forums

stop uploaded then added media from creating link to own file (1 post)

  1. noname1
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic