Plugin Directory

Changeset 1955229


Ignore:
Timestamp:
10/11/2018 02:48:21 PM (7 years ago)
Author:
phikai
Message:

Excluding Preview Posts and Pages

Location:
wp-force-http/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-force-http/trunk/readme.txt

    r1527686 r1955229  
    44Requires at least: 3.5
    55Tested up to: 4.7.0
    6 Stable tag: 0.1.3
     6Stable tag: 0.1.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1818Bugs:
    1919
    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)
    2121
    2222Questions/Comments:
     
    3737== Changelog ==
    3838
     39= 0.1.4 =
     40* Excludes Preview
     41
    3942= 0.1.3 =
    4043* Compatible to 4.7.0
  • wp-force-http/trunk/wordpress-force-http.php

    r1527686 r1955229  
    77Author: A. Kai Armstrong
    88Author URI: http://www.kaiarmstrong.com
    9 Version: 0.1.3
     9Version: 0.1.4
    1010*/
    1111
    12 #http://yoast.com/wordpress-ssl-setup/
    1312function toz_force_http () {
    14   if ( is_ssl() && !is_admin() ) {
     13  if ( is_ssl() && !is_admin() && !is_preview() ) {
    1514    if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
    1615      wp_redirect(preg_replace('|^https://|', 'http://', $_SERVER['REQUEST_URI']), 301 );
Note: See TracChangeset for help on using the changeset viewer.