Changeset 3238130
- Timestamp:
- 02/10/2025 06:56:18 PM (13 months ago)
- Location:
- wp-nested-pages/trunk
- Files:
-
- 10 edited
-
app/Entities/Listing/ListingRepository.php (modified) (1 diff)
-
app/Entities/NavMenu/NavMenuSyncListing.php (modified) (1 diff)
-
app/NestedPages.php (modified) (1 diff)
-
app/Views/forms/link-form.php (modified) (1 diff)
-
app/Views/forms/new-child.php (modified) (1 diff)
-
app/Views/forms/quickedit-post.php (modified) (1 diff)
-
app/Views/partials/bulk-edit.php (modified) (1 diff)
-
app/Views/partials/row.php (modified) (1 diff)
-
nestedpages.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-nested-pages/trunk/app/Entities/Listing/ListingRepository.php
r3111847 r3238130 37 37 $meta = get_user_meta(get_current_user_id(), 'np_visible_posts', true); 38 38 if ( $meta == '1' ) return []; 39 if ( is_array($meta) ) return []; 39 40 $visible = unserialize($meta); 40 if ( !is_array($visible) ) $visible = []; 41 if ( !isset($visible[$post_type]) ) $visible[$post_type] = []; 41 if ( !$visible || !isset($visible[$post_type]) ) $visible = [$post_type => []]; 42 42 return $visible[$post_type]; 43 43 } -
wp-nested-pages/trunk/app/Entities/NavMenu/NavMenuSyncListing.php
r2772716 r3238130 115 115 'menu-item-attr-title' => $attr_title, 116 116 'menu-item-status' => 'publish', 117 'menu-item-classes' => $this->post->nav_css,117 'menu-item-classes' => ( $this->post->nav_css ) ? $this->post->nav_css : '', 118 118 'menu-item-type' => $type, 119 119 'menu-item-object' => $object, -
wp-nested-pages/trunk/app/NestedPages.php
r3207740 r3238130 13 13 14 14 global $np_version; 15 $np_version = '3.2.1 0';15 $np_version = '3.2.11'; 16 16 17 17 if ( is_admin() ) $app = new NestedPages\Bootstrap; -
wp-nested-pages/trunk/app/Views/forms/link-form.php
r2433548 r3238130 40 40 41 41 foreach ( $recent_posts as $post ){ 42 $out .= '<li data-default-result><a href="#" data-np-menu-object="' . esc_attr($name) . '" data-np-menu-type="post_type" data-np-menu-objectid="' . esc_attr($post->ID) . '" data-np-permalink="' . get_the_permalink($post->ID) . '" data-np-object-name="' . esc_attr($type->labels->singular_name) . '" data-np-menu-selection>' . esc_ html($post->post_title) . '</a></li>';42 $out .= '<li data-default-result><a href="#" data-np-menu-object="' . esc_attr($name) . '" data-np-menu-type="post_type" data-np-menu-objectid="' . esc_attr($post->ID) . '" data-np-permalink="' . get_the_permalink($post->ID) . '" data-np-object-name="' . esc_attr($type->labels->singular_name) . '" data-np-menu-selection>' . esc_attr(strip_tags(html_entity_decode(get_the_title($post->ID)))) . '</a></li>'; 43 43 } 44 44 $out .= '</ul>'; -
wp-nested-pages/trunk/app/Views/forms/new-child.php
r2812197 r3238130 73 73 <select name="page_template" class="np_template"> 74 74 <option value="default"><?php _e( 'Default Template' ); ?></option> 75 <?php page_template_dropdown() ?> 75 <?php 76 if ( is_page() ){ 77 page_template_dropdown(); 78 } else { 79 page_template_dropdown('', $this->post_type->name); 80 } 81 ?> 76 82 </select> 77 83 </div> -
wp-nested-pages/trunk/app/Views/forms/quickedit-post.php
r2982731 r3238130 137 137 <select name="page_template" class="np_template"> 138 138 <option value="default"><?php _e( 'Default Template' ); ?></option> 139 <?php page_template_dropdown() ?> 139 <?php 140 if( is_page() ){ 141 page_template_dropdown(); 142 }else{ 143 page_template_dropdown('', $this->post_type->name); 144 } 145 ?> 140 146 </select> 141 147 </div> -
wp-nested-pages/trunk/app/Views/partials/bulk-edit.php
r2982731 r3238130 63 63 <option value="">— <?php _e('No Change', 'wp-nested-pages'); ?> —</option> 64 64 <option value="default"><?php _e( 'Default Template', 'wp-nested-pages' ); ?></option> 65 <?php page_template_dropdown() ?> 65 <?php 66 if( is_page() ){ 67 page_template_dropdown(); 68 }else{ 69 page_template_dropdown('', $this->post_type->name); 70 } 71 ?> 66 72 </select> 67 73 </div> -
wp-nested-pages/trunk/app/Views/partials/row.php
r3160985 r3238130 323 323 if ( $this->can_user_perform_bulk_actions ) : ?> 324 324 <div class="np-bulk-checkbox"> 325 <input type="checkbox" name="nestedpages_bulk[]" value="<?php echo esc_attr($this->post->id); ?>" data-np-bulk-checkbox="<?php echo sanitize_text_field( wp_kses_post($this->post->title)); ?>" data-np-post-type="<?php echo esc_attr($this->post->post_type); ?>" />325 <input type="checkbox" name="nestedpages_bulk[]" value="<?php echo esc_attr($this->post->id); ?>" data-np-bulk-checkbox="<?php echo sanitize_text_field(html_entity_decode($this->post->title)); ?>" data-np-post-type="<?php echo esc_attr($this->post->post_type); ?>" /> 326 326 </div> 327 327 <?php endif ?> -
wp-nested-pages/trunk/nestedpages.php
r3207740 r3238130 4 4 Plugin URI: http://nestedpages.com 5 5 Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while enhancing quick edit. Includes an auto-generated menu to match the nested interface, support for all post types and more. 6 Version: 3.2.1 06 Version: 3.2.11 7 7 Tested up to: 6.7 8 8 Author: Kyle Phillips … … 14 14 */ 15 15 16 /* Copyright 202 4Kyle Phillips (email : support@nestedpages.com)16 /* Copyright 2025 Kyle Phillips (email : support@nestedpages.com) 17 17 18 18 This program is free software; you can redistribute it and/or modify -
wp-nested-pages/trunk/readme.txt
r3207742 r3238130 107 107 108 108 == Changelog == 109 110 = 3.2.11 = 111 * Security update addressing XSS code vulnerability 112 * Addresses deprecation warnings in PHP 8.1 and later (Thanks to Misaki) 113 * Adds support for custom post type template selects (Thanks to anthonyivol) 109 114 110 115 = 3.2.10 =
Note: See TracChangeset
for help on using the changeset viewer.