Plugin Directory

Changeset 3434570


Ignore:
Timestamp:
01/07/2026 05:38:01 PM (3 months ago)
Author:
butterflymedia
Message:

Update sitemap to use the W3C datetime format

Location:
wp-perfect-plugin/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-perfect-plugin/trunk/includes/functions.php

    r3362714 r3434570  
    7272        'wp_sitemaps_posts_entry',
    7373        function ( $entry, $post ) {
    74             $entry['lastmod'] = $post->post_modified_gmt;
     74            if ( ! empty( $post->post_modified_gmt ) ) {
     75                $entry['lastmod'] = mysql2date( 'Y-m-d\TH:i:s+00:00', $post->post_modified_gmt, false );
     76            }
    7577            return $entry;
    7678        },
  • wp-perfect-plugin/trunk/readme.txt

    r3421915 r3434570  
    55Requires PHP: 7.1
    66Tested up to: 6.9
    7 Stable tag: 2.0.4
     7Stable tag: 2.0.5
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3333
    3434== Changelog =
     35
     36= 2.0.5 =
     37* Update sitemap to use the W3C datetime format
    3538
    3639= 2.0.4 =
  • wp-perfect-plugin/trunk/wp-perfect-plugin.php

    r3363937 r3434570  
    66 * Author: Ciprian Popescu
    77 * Author URI: https://getbutterfly.com/
    8  * Version: 2.0.4
     8 * Version: 2.0.5
    99 * License: GNU General Public License v3 or later
    1010 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    1313 *
    1414 * W3P SEO
    15  * Copyright (C) 2010-2025 Ciprian Popescu (getbutterfly@gmail.com)
     15 * Copyright (C) 2010-2026 Ciprian Popescu (getbutterfly@gmail.com)
    1616 *
    1717 * This program is free software: you can redistribute it and/or modify
     
    3535define( 'W3P_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );
    3636define( 'W3P_PATH', plugin_dir_path( __FILE__ ) );
    37 define( 'W3P_VERSION', '2.0.4' );
     37define( 'W3P_VERSION', '2.0.5' );
    3838
    3939require 'includes/functions.php';
Note: See TracChangeset for help on using the changeset viewer.