Changeset 1447005
- Timestamp:
- 07/01/2016 05:47:07 AM (10 years ago)
- Location:
- wp-seo-redirect-301
- Files:
-
- 17 added
- 2 edited
-
tags/2.2.1 (added)
-
tags/2.2.1/README.md (added)
-
tags/2.2.1/css (added)
-
tags/2.2.1/css/style.css (added)
-
tags/2.2.1/images (added)
-
tags/2.2.1/images/edit.png (added)
-
tags/2.2.1/images/facebook.jpg (added)
-
tags/2.2.1/images/progress.gif (added)
-
tags/2.2.1/images/rate-me.png (added)
-
tags/2.2.1/images/resortable.jpg (added)
-
tags/2.2.1/images/trash.png (added)
-
tags/2.2.1/images/twitter.jpg (added)
-
tags/2.2.1/lib (added)
-
tags/2.2.1/lib/tom-m8te.php (added)
-
tags/2.2.1/readme.txt (added)
-
tags/2.2.1/seo_redirect_301s.php (added)
-
tags/2.2.1/seo_redirect_list.php (added)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/seo_redirect_301s.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-seo-redirect-301/trunk/readme.txt
r1439756 r1447005 3 3 Tags: seo, redirect, 301, slug 4 4 Requires at least: 3.0.1 5 Tested up to: 4.5. 26 Stable tag: 2.2. 05 Tested up to: 4.5.3 6 Stable tag: 2.2.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 24 24 == Installation == 25 25 26 1) Install WordPress 4. 4.1or higher26 1) Install WordPress 4.5.3 or higher 27 27 28 28 2) Download the latest from: … … 43 43 == Changelog == 44 44 45 = 2.2.1 = 46 47 * Fixed issue with https urls. 48 45 49 = 2.2.0 = 46 50 … … 174 178 == Upgrade notice == 175 179 180 = 2.2.1 = 181 182 * Fixed issue with https urls. 183 176 184 = 2.2.0 = 177 185 -
wp-seo-redirect-301/trunk/seo_redirect_301s.php
r1439756 r1447005 4 4 Plugin URI: http://wordpress.org/extend/plugins/wp-seo-redirect-301/ 5 5 Description: Records urls and if a pages url changes, system redirects old url to the updated url. 6 Version: 2.2. 06 Version: 2.2.1 7 7 Author: Tom Skroza 8 8 License: GPL2 … … 98 98 if (!is_front_page()) { 99 99 global $wp_query, $post; 100 100 101 // Get the name of the current template. 101 102 $template_name = get_post_meta( get_the_id(), '_wp_page_template', true ); … … 117 118 } 118 119 119 $acceptable_values = array("p ost", "page");120 $acceptable_values = array("page", "post"); 120 121 121 122 // 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))) { 123 124 124 125 // Template is blank, which means page does not exist and is a 404. … … 137 138 $post_row = TomM8::get_row("posts", "*", "ID=".$row->post_id); 138 139 // 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)) { 140 141 // The url isn't current, so redirect. 141 142 $transfer_query_string = "";
Note: See TracChangeset
for help on using the changeset viewer.