From fa0998f4ca2e3ede0d624e50816ce8104baef91d Mon Sep 17 00:00:00 2001 From: Kelson Vibber Date: Thu, 1 Sep 2022 18:01:36 -0700 Subject: [PATCH 1/2] update headers for new ClassicPress directory --- readme.md | 2 +- readme.txt | 85 ------------------------------------------- unwrap-shortlinks.php | 4 +- 3 files changed, 4 insertions(+), 87 deletions(-) delete mode 100644 readme.txt diff --git a/readme.md b/readme.md index 02a48d3..3d0af0e 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # Unwrap Shortlinks -Stable tag: 0.3.0 +Stable tag: 0.3.1 Tags: urls, links, classicpress Requires at least: 3.0 Tested up to: 6.0 diff --git a/readme.txt b/readme.txt deleted file mode 100644 index d7cd422..0000000 --- a/readme.txt +++ /dev/null @@ -1,85 +0,0 @@ -=== Unwrap Shortlinks === - -Stable tag: 0.3.0 -Tags: urls, links, classicpress -Requires at least: 3.0 -Tested up to: 6.0 -Requires PHP: 7.0 -Contributors: Kelson -License: GPLv2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html -For ClassicPress -Requires: 1.0 -Tested: 1.4.1 - -Follows shortened links (t.co, bit.ly, etc) and expands them so that your blog post will point directly to the destination. - -== Description == - -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 -* tinyurl.com -* goo.gl -* dlvr.it -* fb.me -* qr.ae -* aka.ms - -== Installation == - -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. - -== Frequently Asked Questions == - -= What if the destination redirects to another link? = - -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 5 levels (to avoid infinite loops!) or until it gets a URL that isn't on the list. - -= How do I add a shortener to the list? = - -It's not supported yet, but I plan on adding an options page for it. - -= I'm running on a local server and this doesn't do anything! = - -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](https://wordpress.org/support/topic/error-curl-error-7-3/#post-12637512) on the WordPress support forums! - -= What about compatibility? = - -It should work going back to the classic editor and forward to the block editor. It even works on [ClassicPress](https://www.classicpress.net/). - -== Changelog == - -= [0.3.0] - 2022-06-23 = -* Follow link trails, add aka.ms. - -= [0.2.4] - 2022-06-13 = -* Fix bugs with plaintext URLs at the end of a block. - -= [0.2.3] - 2022-06-10 = -* Fix bugs with tinyurl.com and URLs inside HTML links. (Plaintext URLs were working fine.) - -= [0.2.2] - 2022-01-29 = - -* 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](https://codeberg.org/kvibber/unwrap-shortlinks). -[Plugin page at WordPress](https://wordpress.org/plugins/unwrap-shortlinks/). -[Plugin page at ClassicPress](https://directory.classicpress.net/plugins/unwrap-shortlinks). - -(c) 2016-2022 [Kelson Vibber](https://kvibber.com/) diff --git a/unwrap-shortlinks.php b/unwrap-shortlinks.php index 4805a89..a967933 100644 --- a/unwrap-shortlinks.php +++ b/unwrap-shortlinks.php @@ -3,7 +3,9 @@ Plugin Name: Unwrap Shortlinks Plugin URI: https://codeberg.org/kvibber/unwrap-shortlinks Description: Follow shortened links (t.co, bit.ly, etc) and expand them so that your blog post will point directly to the destination. - Version: 0.3.0 + Requires PHP: 7.0 + Requires CP: 1.0 + Version: 0.3.1 Author: Kelson Vibber Author URI: https://kvibber.com License: GPLv2 or later From 5a4ec57ea1aeccaecd3cea67d39469ae862ff2fd Mon Sep 17 00:00:00 2001 From: Kelson Vibber Date: Thu, 1 Sep 2022 18:09:35 -0700 Subject: [PATCH 2/2] update zip packager to keep the markdown version of the readme and leave out the linkchain testing info --- packagezip.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packagezip.sh b/packagezip.sh index 14ed3cd..441f9da 100755 --- a/packagezip.sh +++ b/packagezip.sh @@ -16,8 +16,7 @@ if [ ! -d build ]; then fi mkdir build/$ZIPNAME -cp -p *.php *.txt *.md LICENSE "build/$ZIPNAME" -rm "build/$ZIPNAME/readme.md" +cp -p *.php *.md LICENSE "build/$ZIPNAME" echo "Building $ZIPNAME" cd build && zip -r "$ZIPNAME.zip" "$ZIPNAME"