wp core update 6.6
This commit is contained in:
@@ -124,11 +124,11 @@ function _walk_bookmarks( $bookmarks, $args = '' ) {
|
||||
|
||||
$output .= $parsed_args['link_before'];
|
||||
|
||||
if ( null != $bookmark->link_image && $parsed_args['show_images'] ) {
|
||||
if ( '' !== $bookmark->link_image && $parsed_args['show_images'] ) {
|
||||
if ( str_starts_with( $bookmark->link_image, 'http' ) ) {
|
||||
$output .= "<img src=\"$bookmark->link_image\" $alt $title />";
|
||||
$output .= '<img src="' . $bookmark->link_image . '"' . $alt . $title . ' />';
|
||||
} else { // If it's a relative path.
|
||||
$output .= '<img src="' . get_option( 'siteurl' ) . "$bookmark->link_image\" $alt $title />";
|
||||
$output .= '<img src="' . get_option( 'siteurl' ) . $bookmark->link_image . '"' . $alt . $title . ' />';
|
||||
}
|
||||
if ( $parsed_args['show_name'] ) {
|
||||
$output .= " $name";
|
||||
|
||||
Reference in New Issue
Block a user