Stable tag: 0.3.4
Tags: urls, links, classicpress
Tested up to: 6.6
Contributors: Kelson
License: GPLv2 or later
Follows shortened links (t.co, bit.ly, etc) and WordPress' ?p=123-style links, and expands them so that your blog post will point directly to the destination.
Automatically expands URLs at the following known link shorteners when you save a post:
- t.co
- bit.ly
- ow.ly
- j.mp
- is.gd
- trib.al
- buff.ly
- wp.me
- tmblr.co
- goo.gl
- dlvr.it
- fb.me
- qr.ae
- aka.ms
- tinyurl.com
Install the plugin and activate it. The next time you paste a supported short URL into a post, it will be updated when the post is saved.
If the destination is another known URL shortener (ex. t.co pointing to bit.ly pointing to wp.me pointing to a blog post), it'll keep going up to 8 levels (to avoid infinite loops!) or until it gets a URL that isn't on the list.
It's not supported yet, but I plan on adding an options page for it.
Most likely your system is configured to block your local webserver from making outgoing connections. This is a sensible default for security! Depending on your system, it may be blocked by a local or network firewall. If you're running Fedora Workstation with SELinux (like I am), this will enable it:
sudo setsebool -P httpd_can_network_connect true
Thanks to igienger's post on the WordPress support forums!
It should work going back to the classic editor and forward to the block editor. It even works on ClassicPress.
- Also follow WordPress' ?p=123 links if they redirect to a permalink.
- tinyurl.com is accepting curl requests again, so I've added it back to the list.
- tinyurl.com is screening requests using Cloudflare, and a simple curl request is no longer allowed through. Removing it from the list.
- Tested up through 6.1, clean up headers, no functional changes.
- Update headers for new ClassicPress plugin directory. No changes affecting WordPress
- Follow link trails, add aka.ms.
- Fix bugs with plaintext URLs at the end of a block.
- Fix bugs with tinyurl.com and URLs inside HTML links. (Plaintext URLs were working fine.)
- Initial release based on the code I've been running locally for years, plus changes requested by the WordPress plugin review team.
Source on Codeberg.
Mirror on GitHub.
Plugin page at WordPress.
Plugin page at ClassicPress.
(c) 2016-2024 Kelson Vibber