[wp-trac] [WordPress Trac] #32072: Move link code for clarity in wp_ajax_send_attachment_to_editor() in ajax-actions.php

WordPress Trac noreply at wordpress.org
Thu Sep 17 05:54:58 UTC 2015


#32072: Move link code for clarity in wp_ajax_send_attachment_to_editor() in ajax-
actions.php
-------------------------+------------------------------
 Reporter:  tychay       |       Owner:  wonderboymusic
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  3.5
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |     Focuses:
-------------------------+------------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34260"]:
 {{{
 #!CommitTicketReference repository="" revision="34260"
 Media: In `wp_ajax_send_attachment_to_editor()`, the fallback logic for
 `$html` should be tucked into an `else` statement so it isn't run
 needlessly and overwritten.

 Props tychay.
 Fixes #32072.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32072#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list