View Single Post
Old 05-31-2022, 08:11 AM  
Paul&John
Confirmed User
 
Paul&John's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,601
Links - Wordpress sites using old themes

Hi!

Seems like the get_links() function got deprecated not so long ago and a parameter was added to it (don't know when):
Quote:
$show_updated
(int) (Optional) Whether to show last updated timestamp.
Default value: 1
The thing with this piece of parameter is (which is by default on) that it automatically inserts a text into the title part of the a href: (Last updated December 31, 1969 7:00 pm).. so it will look like this:

Quote:
<a href="https://www.domain.com" title=" (Last updated December 31, 1969 7:00 pm)">Domain</a>
Last time WP wasn't doing this, but today I updated some sites to WP6.0 then added some links and at first couldn't figure out while is that last updated part included.. I guess only old themes are affected, where that parameter isn't set to disabled and maybe the new themes are using the newer function called get_bookmarks()..

Anyway if you have some sites on older themes check if you aren't affected by the same issue. Also it can be fixed by editing get_links() in the sidebar.php file.. usually from:
Code:
<?php get_links(-1, '<li>', '</li>', ' - '); ?>
to this:
Code:
<?php get_links(-1, '<li>', '</li>', ' - ',true,'name',true,false,-1,0); ?>
__________________
Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here
Paul&John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote