Media: Remove an extra quote when sending a link of a media file to the editor.
Introduced in [37035]. Merge of [37288] to the 4.5 branch. Props joemcgill, swissspidy, boonebgorges. Fixes #36578. Built from https://develop.svn.wordpress.org/branches/4.5@37289 git-svn-id: http://core.svn.wordpress.org/branches/4.5@37255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3ea969bb66
commit
9bfc7ded12
|
@ -2602,7 +2602,7 @@ function wp_ajax_send_attachment_to_editor() {
|
||||||
$rel = $rel ? ' rel="attachment wp-att-' . $id . '"' : ''; // Hard-coded string, $id is already sanitized
|
$rel = $rel ? ' rel="attachment wp-att-' . $id . '"' : ''; // Hard-coded string, $id is already sanitized
|
||||||
|
|
||||||
if ( ! empty( $url ) ) {
|
if ( ! empty( $url ) ) {
|
||||||
$html = '<a href="' . esc_url( $url ) . '"' . $rel . '">' . $html . '</a>';
|
$html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5.1-alpha-37286';
|
$wp_version = '4.5.1-alpha-37289';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue