Changeset 1955229
- Timestamp:
- 10/11/2018 02:48:21 PM (7 years ago)
- Location:
- wp-force-http/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wordpress-force-http.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-force-http/trunk/readme.txt
r1527686 r1955229 4 4 Requires at least: 3.5 5 5 Tested up to: 4.7.0 6 Stable tag: 0.1. 36 Stable tag: 0.1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 18 18 Bugs: 19 19 20 * Report at: [ Github Issue Tracker](https://github.com/phikai/wordpress-force-http/issues)20 * Report at: [Issue Tracker](https://gitlab.com/phikai/wordpress-force-http/issues) 21 21 22 22 Questions/Comments: … … 37 37 == Changelog == 38 38 39 = 0.1.4 = 40 * Excludes Preview 41 39 42 = 0.1.3 = 40 43 * Compatible to 4.7.0 -
wp-force-http/trunk/wordpress-force-http.php
r1527686 r1955229 7 7 Author: A. Kai Armstrong 8 8 Author URI: http://www.kaiarmstrong.com 9 Version: 0.1. 39 Version: 0.1.4 10 10 */ 11 11 12 #http://yoast.com/wordpress-ssl-setup/13 12 function toz_force_http () { 14 if ( is_ssl() && !is_admin() ) {13 if ( is_ssl() && !is_admin() && !is_preview() ) { 15 14 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) { 16 15 wp_redirect(preg_replace('|^https://|', 'http://', $_SERVER['REQUEST_URI']), 301 );
Note: See TracChangeset
for help on using the changeset viewer.