Changeset 1727453
- Timestamp:
- 09/09/2017 07:28:44 PM (9 years ago)
- Location:
- remove-http
- Files:
-
- 5 added
- 3 edited
-
tags/2.1.1 (added)
-
tags/2.1.1/index.php (added)
-
tags/2.1.1/readme.txt (added)
-
tags/2.1.1/remove-http.php (added)
-
tags/2.1.1/uninstall.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/remove-http.php (modified) (2 diffs)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
remove-http/trunk/readme.txt
r1633859 r1727453 4 4 Tags: cloudflare, http, https, insecure content, mixed content, mixed content warning, partially encrypted, protocol relative url, protocol rewriting, relative protocol, remove http, remove https, rewrite, ssl, url 5 5 Requires at least: 3.0.0 6 Tested up to: 4.7.3 7 Stable tag: 2.1.0 6 Tested up to: 4.8.1 7 Requires PHP: 5.2 8 Stable tag: 2.1.1 8 9 License: GPLv3 9 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 51 52 52 53 == Changelog == 54 = 2.1.1 = 55 56 *2017-09-09* 57 58 * Added support for relative domain paths 59 53 60 = 2.1.0 = 54 61 -
remove-http/trunk/remove-http.php
r1633859 r1727453 4 4 * Plugin URI: https://wordpress.org/plugins/remove-http/ 5 5 * Description: Removes both HTTP and HTTPS protocols from links. 6 * Version: 2.1. 06 * Version: 2.1.1 7 7 * Author: Fact Maven 8 8 * Author URI: https://www.factmaven.com/ … … 95 95 if ( is_null( $content_type ) || substr( $content_type, 0, 9 ) === 'text/html' ) { 96 96 # Get domain without protocol 97 $website = preg_replace( '/https?:\/\//', '', home_url() ); 97 $website = preg_replace( '/^https?:\/\//', '', home_url() ); 98 $website = preg_replace( '/\/.*$/', '', $website ); 98 99 # Ignore input tags link tags with 'rel=canonical' 99 100 $exceptions = '<(?:input\b[^<]*\bvalue=[\"\']https?:\/\/|link\b[^<]*?\brel=[\'\"]canonical[\'\"][^<]*?>)(*SKIP)(*F)'; -
remove-http/trunk/uninstall.php
r1522185 r1727453 3 3 * Runs automatically when the plugin is deleted. 4 4 * 5 * @author Fact Maven Corp.5 * @author Fact Maven 6 6 * @link https://wordpress.org/plugins/remove-http/ 7 7 */
Note: See TracChangeset
for help on using the changeset viewer.