]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/ajax-actions.php
WordPress 4.5.1
[autoinstalls/wordpress.git] / wp-admin / includes / ajax-actions.php
index f3d8e839f859bdf76a8cd9e6035c04ff1b490448..e3b345c53c8ba37b42b092051c174e0d8b3a60f6 100644 (file)
@@ -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
 
                if ( ! empty( $url ) ) {
                $rel = $rel ? ' rel="attachment wp-att-' . $id . '"' : ''; // Hard-coded string, $id is already sanitized
 
                if ( ! empty( $url ) ) {
-                       $html = '<a href="' . esc_url( $url ) . '"' . $rel . '">' . $html . '</a>';
+                       $html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';
                }
        }
 
                }
        }