[Bug] Don't show blogroll links which have already been deleted in the mean time
Sometimes a link is found to be broken at some point, the admin gets an email to that effect and a little while later goes to the broken links page to verify.
The admin or another editor may (unwittingly) have deleted the broken link in the mean time. If that's the case, the plugin starts throwing errors as it is trying to retrieve the blogroll link object while it doesn't exists anymore.
So basically I'm suggesting that before displaying the broken links page, a quick check should be done for blogroll links to check if the link still exists and if not, remove it from the list of broken links to be displayed.
-
AdminJānis Elsts (Admin, W-Shadow.com) commented
I can't seem to reproduce this bug. The plugin already uses the "add_link" and "delete_link" hooks to detect when a new blogroll link is added or deleted. I tested it on a local site, and when I deleted a blogroll link, the corresponding "Broken Links" entry was also removed.