[wp-trac] [WordPress Trac] #13429: Updating Link URL on image within Admin with Gallery

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 05:13:24 UTC 2011


#13429: Updating Link URL on image within Admin with Gallery
------------------------------------+-----------------------------
 Reporter:  vshoward                |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Gallery                 |     Version:  2.9.2
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------------

Comment (by garyc40):

 Sergey's patch looks fine, except:

 {{{
 update_post_meta( $attachment_id, '_wp_attachment_url',
 esc_attr($attachment['url']) );
 }}}

 should be:

 {{{
 update_post_meta( $attachment_id, '_wp_attachment_url',
 esc_url_raw($attachment['url']) );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13429#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list