Plugin Directory

Changeset 1454418


Ignore:
Timestamp:
07/14/2016 12:04:22 AM (10 years ago)
Author:
MMDeveloper
Message:

Bug fix for DISABLE_301_SITEMAP, if job is still running, this still executes. Now this is fixed.

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

Legend:

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

    r1447005 r1454418  
    44Requires at least: 3.0.1
    55Tested up to: 4.5.3
    6 Stable tag: 2.2.1
     6Stable tag: 2.2.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4343== Changelog ==
    4444
     45= 2.2.2 =
     46
     47* Bug fix for DISABLE_301_SITEMAP, if job is still running, this still executes. Now this is fixed.
     48
    4549= 2.2.1 =
    4650
     
    178182== Upgrade notice ==
    179183
     184= 2.2.2 =
     185
     186* Bug fix for DISABLE_301_SITEMAP, if job is still running, this still executes. Now this is fixed.
     187
    180188= 2.2.1 =
    181189
  • wp-seo-redirect-301/trunk/seo_redirect_301s.php

    r1453086 r1454418  
    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.1
     6Version: 2.2.2
    77Author: Tom Skroza
    88License: GPL2
     
    291291 */
    292292function seo_redirect_301_do_this_daily() {
    293  
     293
     294  if (defined("DISABLE_301_SITEMAP") && DISABLE_301_SITEMAP) {
     295    // Do nothing.
     296  } else {
    294297    $my_redirects = TomM8::get_results("slug_history", "*", "");
    295298    $content = "<?xml version='1.0' encoding='UTF-8'?><urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd'>";
     
    307310      }
    308311    $content .= "</urlset>";
    309     TomM8::write_to_file($content, ABSPATH."/301-sitemap.xml");
     312    TomM8::write_to_file($content, ABSPATH."/301-sitemap.xml");   
     313  }
     314 
    310315
    311316}
Note: See TracChangeset for help on using the changeset viewer.