Plugin Directory

Changeset 3439747


Ignore:
Timestamp:
01/14/2026 05:39:56 PM (2 months ago)
Author:
butterflymedia
Message:

Fix sitemap lastmod date format to use W3C datetime format (fixes Google Search Console invalid date errors) and fix undefined array key warning in subpages shortcode.

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

Legend:

Unmodified
Added
Removed
  • wp-perfect-plugin/trunk/modules/w3p-list-subpages.php

    r3303048 r3439747  
    77    global $post;
    88
     9    $default_parent_id = 0;
     10    if ( isset( $post ) && isset( $post->ID ) ) {
     11        $default_parent_id = $post->ID;
     12    }
     13
    914    $attributes = shortcode_atts(
    1015        [
    1116            'orderby'   => 'menu_order',
    12             'parent-id' => $post->ID,
     17            'parent-id' => $default_parent_id,
    1318        ],
    1419        $atts
    1520    );
    1621
     22    $parent_id = isset( $attributes['parent_id'] ) ? (int) $attributes['parent_id'] : $default_parent_id;
     23
    1724    $args = [
    1825        'post_type'      => 'page',
    1926        'posts_per_page' => -1,
    20         'post_parent'    => (int) $attributes['parent_id'],
     27        'post_parent'    => $parent_id,
    2128        'post_status'    => 'publish',
    2229        'orderby'        => $attributes['orderby'],
  • wp-perfect-plugin/trunk/readme.txt

    r3434570 r3439747  
    55Requires PHP: 7.1
    66Tested up to: 6.9
    7 Stable tag: 2.0.5
     7Stable tag: 2.0.6
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3333
    3434== Changelog =
     35
     36= 2.0.6 =
     37* Fix sitemap lastmod date format to use W3C datetime format (fixes Google Search Console invalid date errors)
     38* Fix undefined array key warning in subpages shortcode
    3539
    3640= 2.0.5 =
  • wp-perfect-plugin/trunk/wp-perfect-plugin.php

    r3434570 r3439747  
    66 * Author: Ciprian Popescu
    77 * Author URI: https://getbutterfly.com/
    8  * Version: 2.0.5
     8 * Version: 2.0.6
    99 * License: GNU General Public License v3 or later
    1010 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3535define( 'W3P_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );
    3636define( 'W3P_PATH', plugin_dir_path( __FILE__ ) );
    37 define( 'W3P_VERSION', '2.0.5' );
     37define( 'W3P_VERSION', '2.0.6' );
    3838
    3939require 'includes/functions.php';
Note: See TracChangeset for help on using the changeset viewer.