Ticket #50561: 50561.diff
File 50561.diff, 978 bytes (added by , 5 years ago) |
---|
-
wp-includes/bookmark-template.php
114 114 $output .= $parsed_args['link_before']; 115 115 116 116 if ( null != $bookmark->link_image && $parsed_args['show_images'] ) { 117 $aria = ''; 118 if ( $parsed_args['show_name'] ) { 119 $aria = 'aria-hidden="true"'; 120 } 117 121 if ( strpos( $bookmark->link_image, 'http' ) === 0 ) { 118 $output .= "<img src=\"$bookmark->link_image\" $alt $title />";122 $output .= "<img src=\"$bookmark->link_image\" $alt $title $aria />"; 119 123 } else { // If it's a relative path. 120 $output .= '<img src="' . get_option( 'siteurl' ) . "$bookmark->link_image\" $alt $title />";124 $output .= '<img src="' . get_option( 'siteurl' ) . "$bookmark->link_image\" $alt $title $aria />"; 121 125 } 122 126 if ( $parsed_args['show_name'] ) { 123 127 $output .= " $name";