Ticket #22553: 22553.patch
| File 22553.patch, 1.1 KB (added by azaozz, 6 months ago) |
|---|
-
wp-admin/includes/ajax-actions.php
1932 1932 wp_send_json_error(); 1933 1933 1934 1934 $html = isset( $attachment['title'] ) ? $attachment['title'] : ''; 1935 $rel = ''; 1935 1936 if ( ! empty( $attachment['url'] ) ) { 1936 $rel = '';1937 1937 if ( strpos($attachment['url'], 'attachment_id') || get_attachment_link( $id ) == $attachment['url'] ) 1938 1938 $rel = ' rel="attachment wp-att-' . $id . '"'; 1939 1939 $html = '<a href="' . esc_url( $attachment['url'] ) . '"' . $rel . '>' . $html . '</a>'; … … 1942 1942 remove_filter( 'media_send_to_editor', 'image_media_send_to_editor', 10, 3 ); 1943 1943 1944 1944 if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) { 1945 $url = $attachment['url'];1945 $url = isset( $attachment['url'] ) ? $attachment['url'] : ''; 1946 1946 $align = isset( $attachment['image-align'] ) ? $attachment['image-align'] : 'none'; 1947 1947 $size = isset( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium'; 1948 1948 $alt = isset( $attachment['image-alt'] ) ? $attachment['image-alt'] : '';
