[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
Wed Apr 22 22:03:49 UTC 2015
#32072: Move link code for clarity in wp_ajax_send_attachment_to_editor() in ajax-
actions.php
-------------------------+------------------------------
Reporter: tychay | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.1.2
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by tychay):
The above code has an error, {{{$rel}}} needs to be assigned below
{{{$url}}}:
{{{#!php
$rel = ( $url ) ? ' rel="attachment wp-att-' . $id . '"' : '';
}}}
Else it will trigger a warning in the {{{'image'}}} code.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32072#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list