Changeset 3439747
- Timestamp:
- 01/14/2026 05:39:56 PM (2 months ago)
- Location:
- wp-perfect-plugin/trunk
- Files:
-
- 3 edited
-
modules/w3p-list-subpages.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-perfect-plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-perfect-plugin/trunk/modules/w3p-list-subpages.php
r3303048 r3439747 7 7 global $post; 8 8 9 $default_parent_id = 0; 10 if ( isset( $post ) && isset( $post->ID ) ) { 11 $default_parent_id = $post->ID; 12 } 13 9 14 $attributes = shortcode_atts( 10 15 [ 11 16 'orderby' => 'menu_order', 12 'parent-id' => $ post->ID,17 'parent-id' => $default_parent_id, 13 18 ], 14 19 $atts 15 20 ); 16 21 22 $parent_id = isset( $attributes['parent_id'] ) ? (int) $attributes['parent_id'] : $default_parent_id; 23 17 24 $args = [ 18 25 'post_type' => 'page', 19 26 'posts_per_page' => -1, 20 'post_parent' => (int) $attributes['parent_id'],27 'post_parent' => $parent_id, 21 28 'post_status' => 'publish', 22 29 'orderby' => $attributes['orderby'], -
wp-perfect-plugin/trunk/readme.txt
r3434570 r3439747 5 5 Requires PHP: 7.1 6 6 Tested up to: 6.9 7 Stable tag: 2.0. 57 Stable tag: 2.0.6 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 33 33 34 34 == 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 35 39 36 40 = 2.0.5 = -
wp-perfect-plugin/trunk/wp-perfect-plugin.php
r3434570 r3439747 6 6 * Author: Ciprian Popescu 7 7 * Author URI: https://getbutterfly.com/ 8 * Version: 2.0. 58 * Version: 2.0.6 9 9 * License: GNU General Public License v3 or later 10 10 * License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 define( 'W3P_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) ); 36 36 define( 'W3P_PATH', plugin_dir_path( __FILE__ ) ); 37 define( 'W3P_VERSION', '2.0. 5' );37 define( 'W3P_VERSION', '2.0.6' ); 38 38 39 39 require 'includes/functions.php';
Note: See TracChangeset
for help on using the changeset viewer.