GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Links - Wordpress sites using old themes (https://gfy.com/showthread.php?t=1355189)

Paul&John 05-31-2022 08:11 AM

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); ?>

NatalieK 06-03-2022 08:53 AM

when you say "old" themes, like how old?

we´ve not had any problems like this with outs, not of what we´ve noticed, but thank you for the info anyway :2 cents:

Paul&John 06-04-2022 08:58 AM

Like super old.. one of the themes was made for Wordpress 2.6 which was released back in 2008 lol


All times are GMT -7. The time now is 12:11 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123