Plugin Directory

Changeset 2285508


Ignore:
Timestamp:
04/17/2020 08:12:13 AM (6 years ago)
Author:
kuegy
Message:

code enhancement

Location:
wp-txt-sitemap/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-txt-sitemap/trunk/readme.txt

    r2265804 r2285508  
    22Contributors: kuegy
    33Tags: Sitemap, Text Sitemap, Txt Sitemap, Sitemap Plugin, Sitemap Generator, XML Sitemap, Sitemap XML, seo, google, bing
    4 Version: 1.2
     4Version: 1.3
    55Requires at least: 3.0.1
    6 Tested up to: 5.3.2
    7 Stable tag: 1.2
     6Tested up to: 5.4
     7Stable tag: 1.3
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
  • wp-txt-sitemap/trunk/wp-txt-sitemap.php

    r2285203 r2285508  
    44    Plugin URI: https://kuegy.com/wordpress/plugins/kuegy-soft
    55    Description: WP TXT Sitemap creates an TXT Sitemap For your website. <a href="options-reading.php#wptxtsitemap">Options</a>.
    6     Version: 1.2
     6    Version: 1.3
    77    Author: kuegy
    88    Author URI: https://kuegy.com
     
    9595        foreach($kuegy_txtsitemap_urls as $post) {
    9696            setup_postdata($post);
    97             // $postdate = explode(" ", $post->post_modified);
    9897            $sitemap .= "\n";
    9998            $sitemap .= get_permalink($post->ID);
     
    106105        if (!$handle = fopen($txtfile, 'w')) {
    107106            add_action('admin_notices', 'kuegy_txtsitemap_error_notice_not_writable');
    108             // delete_option('kuegy_txtsitemap_last_updated');
    109107            exit;
    110108        }
     
    113111        if (fwrite($handle, $sitemap) === FALSE) {
    114112            add_action('admin_notices', 'kuegy_txtsitemap_error_notice_not_writable');
    115             // delete_option('kuegy_txtsitemap_last_updated');
    116113            exit;
    117114        }
Note: See TracChangeset for help on using the changeset viewer.