Plugin Directory

Changeset 1447005


Ignore:
Timestamp:
07/01/2016 05:47:07 AM (10 years ago)
Author:
MMDeveloper
Message:

Fixed issue with https urls.

Location:
wp-seo-redirect-301
Files:
17 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-seo-redirect-301/trunk/readme.txt

    r1439756 r1447005  
    33Tags: seo, redirect, 301, slug
    44Requires at least: 3.0.1
    5 Tested up to: 4.5.2
    6 Stable tag: 2.2.0
     5Tested up to: 4.5.3
     6Stable tag: 2.2.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2424== Installation ==
    2525
    26 1) Install WordPress 4.4.1 or higher
     261) Install WordPress 4.5.3 or higher
    2727
    28282) Download the latest from:
     
    4343== Changelog ==
    4444
     45= 2.2.1 =
     46
     47* Fixed issue with https urls.
     48
    4549= 2.2.0 =
    4650
     
    174178== Upgrade notice ==
    175179
     180= 2.2.1 =
     181
     182* Fixed issue with https urls.
     183
    176184= 2.2.0 =
    177185
  • wp-seo-redirect-301/trunk/seo_redirect_301s.php

    r1439756 r1447005  
    44Plugin URI: http://wordpress.org/extend/plugins/wp-seo-redirect-301/
    55Description: Records urls and if a pages url changes, system redirects old url to the updated url.
    6 Version: 2.2.0
     6Version: 2.2.1
    77Author: Tom Skroza
    88License: GPL2
     
    9898    if (!is_front_page()) {
    9999      global $wp_query, $post;
     100
    100101      // Get the name of the current template.
    101102      $template_name = get_post_meta( get_the_id(), '_wp_page_template', true );
     
    117118      }
    118119
    119       $acceptable_values = array("post", "page");
     120      $acceptable_values = array("page", "post");
    120121
    121122      // Check if page exists.
    122       if ((($template_name == "" && $post_template_name == "") || !in_array($wp_query->post->post_type, $acceptable_values))) { 
     123      if ((($template_name == "" && $post_template_name == "") || !in_array($wp_query->post->post_type, $acceptable_values))) {
    123124
    124125        // Template is blank, which means page does not exist and is a 404.
     
    137138          $post_row = TomM8::get_row("posts", "*", "ID=".$row->post_id);
    138139          // Test to see if url is still the current url.
    139           if (TomM8::get_current_url() != get_permalink($row->post_id)) {
     140          if (str_replace(":443", "", TomM8::get_current_url()) != get_permalink($row->post_id)) {
    140141            // The url isn't current, so redirect.
    141142            $transfer_query_string = "";
Note: See TracChangeset for help on using the changeset viewer.