diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/bookmark-template.php
--- a/wp/wp-includes/bookmark-template.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/bookmark-template.php Fri Sep 05 18:40:08 2025 +0200
@@ -1,6 +1,6 @@
link_updated_f, 0, 2 ) ) {
+ if ( ! str_starts_with( $bookmark->link_updated_f, '00' ) ) {
$title .= ' (';
$title .= sprintf(
/* translators: %s: Date and time of last update. */
@@ -124,11 +124,11 @@
$output .= $parsed_args['link_before'];
- if ( null != $bookmark->link_image && $parsed_args['show_images'] ) {
- if ( strpos( $bookmark->link_image, 'http' ) === 0 ) {
- $output .= "
link_image\" $alt $title />";
+ if ( '' !== $bookmark->link_image && $parsed_args['show_images'] ) {
+ if ( str_starts_with( $bookmark->link_image, 'http' ) ) {
+ $output .= '
';
} else { // If it's a relative path.
- $output .= '
link_image\" $alt $title />";
+ $output .= '
';
}
if ( $parsed_args['show_name'] ) {
$output .= " $name";
@@ -164,7 +164,7 @@
}
/**
- * Retrieve or echo all of the bookmarks.
+ * Retrieves or echoes all of the bookmarks.
*
* List of default arguments are as follows:
*