该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Save Post. Check Links.

描述

When a post is saved or published, this plugin will

  • scan the post’s content for any URLs,
  • ping all the URLs found (except relative ones),
  • detect any broken or unreachable URLs and list them for review and correction.

No more publishing of links or images broken by typos or incompletely copy-pasted URLs!

Support

Contribute

  • Active development of this plugin is handled on GitHub.
  • Pull requests for documented bugs are highly appreciated.
  • If you think you’ve found a bug (e.g. you’re experiencing unexpected behavior), please post at the support forums first.
  • If you want to help us translate this plugin you can do so on WordPress Translate.

Credits

屏幕截图

  • Output of faulty links in the Gutenberg Editor
  • Output of faulty links in the Classic Editor

常见问题

Will this plugin automatically correct link URLs on my website?

No, but it will automatically find any broken URLs in a post and list them for you, so you can review and correct them.

Will it find broken image URLs, too?

Yes, the plugin will ping every URL in your post’s content, no matter if it’s in a link, an image** or even in a shortcode.

Will the plugin prevent a post with broken links in it from being published?

No, it will just list any broken URLs for you, but it will do so already when you save a draft. Most people save a draft multiple times before they publish it, so there’s a fair chance you’ll notice any broken links before actually publishing.

Does it matter whether a URL is http or https?

By default the plugin will try to ping both, http and https URLs. If needed, you can change accepted protocols via hook. For example, in order to check only URLs with SSL:

`

add_filter( ‘spcl_acceptable_protocols’, ‘set_spcl_acceptable_protocols’ );
function set_spcl_acceptable_protocols( $schemes ) {
return array( ‘https’ );
}
`

Where’s the settings page?

There is none, no configuration necessary.

评价

2021 年 4 月 14 日
This plugin provides a very different approach than most other link checkers: It does not scan your whole website for broken links, but checks all links when you create or update them. While you may miss some broken links (which worked when you created them, but stopped working in the meantime) with that approach, this plugin helps you to avoid typos in URLs and does not create too much load on your website.
2021 年 1 月 11 日
I’m baffled this plugin hasn’t got more installs. Checking for broken links, could be part of the “pre publish checklist” feature, but it isn’t. I like how the links are checked when you save/update a post, allowing you to catch any typos immediately and not hurting your websites performance afterwards (like other link checkers might do). Also – I’ve tested Save Post, Check Links on a WordPress 5.6 multisite with PHP 8.0.0 – no issues encountered. Recommended 🙂 Bjarne
2019 年 12 月 16 日
Pluginkollektiv is one of my favourite developers: they provide very useful and lights plugins. This plugin works perfectly! Would be nice to have it also on pages, woo-commerce products etc. etc. I hope they will keep it updated. Many thanks
阅读所有4条评价

贡献者及开发者

“Save Post. Check Links.” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Save Post. Check Links.」插件已被翻译至 4 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Save Post. Check Links.”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.1

  • Fix issue that check does work in Gutenberg

1.0.0

  • Add support for the Gutenberg editor (compatible with the latest WordPress version now)

0.7.5

  • Use a more secure hashing function

0.7.4

  • Bugfix for translations via wordpress.org

0.7.3

  • Improve code style
  • Improve error messages

0.7.2

0.7.1

  • No verification of relative links (e.g. image paths)
  • Hook spcl_acceptable_protocols added