Plugin Directory

Changeset 495623


Ignore:
Timestamp:
01/26/2012 02:34:47 PM (14 years ago)
Author:
Tilex
Message:

Fixed a small bug.

Location:
simple-google-sitemap-xml/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simple-google-sitemap-xml/trunk/readme.txt

    r492224 r495623  
    44Requires at least: 2.0
    55Tested up to: 3.3.1
    6 Stable tag: 1.4.2
     6Stable tag: 1.4.3
    77
    88Simple Google Sitemap XML generates a valid Google XML sitemap.
     
    7272= 1.4.2 =
    7373* Fixed a small bug
     74
     75= 1.4.3 =
     76* Fixed a bug where Google Webmaster Tools complained about a duplicate entry in the XML file
  • simple-google-sitemap-xml/trunk/simple-google-sitemap-xml.php

    r492224 r495623  
    22/*
    33Plugin Name: Simple Google Sitemap XML
    4 Version:     1.4.2
     4Version:     1.4.3
    55Plugin URI:  http://itx-technologies.com/blog/simple-google-sitemap-xml-for-wordpress
    66Description: Generates a valid Google XML sitemap with a very simple admin interface
     
    6464   
    6565   
     66    // XML's header
    6667    $xmlcontent =  '<?xml version="1.0" encoding="UTF-8"?>'."\n";
    6768    $xmlcontent .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'."\n";
    68     $xmlcontent .= "
    69      <url>
    70       <loc>".get_option( 'siteurl' )."/</loc>";
    71       if ($gsxml_last_ch == 'Enable') {
    72            $xmlcontent .= "<lastmod>".date('Y-m-d')."</lastmod>";
    73       }     
    74            
    75       // verify that priority + change frequency have been enabled
    76       if ($gsxml_pri_freq == 'Enable') {
    77            $xmlcontent .= "<changefreq>".$home_f."</changefreq>
    78            <priority>".$home_p."</priority>";
    79       }
    80      $xmlcontent .= "</url>\n";
    8169     
    8270    // Query for the posts
Note: See TracChangeset for help on using the changeset viewer.