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

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 21 02:28:10 UTC 2012


#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 2nd-opinion  |
-----------------------------------+-----------------------------

Comment (by azaozz):

 Changes for _fix_attachment_links() in 13429-4.patch:

 - Filters post_content using the 'wp_insert_post_data' filter.
 - Runs only on publishing or updating a post.
 - Checks the links three-way:
   - attachment_id=### in href,
   - matching wp-att-### in rel,
   - matching site URL in href.

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


More information about the wp-trac mailing list