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

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 20 22:24:19 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 nacin):

 Replying to [comment:52 azaozz]:
 > Replying to [comment:51 nacin]:
 > > Where does this occur?
 >
 > When clicking the "Insert into Post" button in the gallery popup (while
 creating the content that is inserted).

 I meant in the code.

 > Tested several ways to make that more transparent,
 _fix_attachment_links() is a "filter", perhaps better run on the content
 right before saving published or updated post. If run on
 "transition_post_status" it starts a loop (as it calls insert_post too).
 That would also prevent running all the hooks for saving a post for second
 or third time.

 There are ways to avoid that.

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


More information about the wp-trac mailing list