Plugin Directory

Changeset 3113442


Ignore:
Timestamp:
07/06/2024 08:48:21 AM (20 months ago)
Author:
plugindevs
Message:

2.0.0 (07-06-24)

# Compatible with WordPress Latest Version
# Compatible with Elementor Latest Version
# Compatible with Elementor PRO Latest Version
# Add Escaping attributes to comply with latest WordFence and WordPress Security Updates

Location:
blog-posts-and-category-for-elementor
Files:
226 added
4 edited

Legend:

Unmodified
Added
Removed
  • blog-posts-and-category-for-elementor/trunk/admin/post-category-filter-utils.php

    r2805835 r3113442  
    216216     * @access public
    217217     */
    218     public function register_widgets() {
     218    public function register_widgets( $controls_manager ) {
    219219        $this->includes();
    220         $this->register_slider_widgets();
     220        $this->register_slider_widgets( $controls_manager );
    221221    }
    222222
     
    245245     * @access public
    246246     */
    247     public function register_slider_widgets() {
    248         \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new AJAX_LOAD_MORE\PD_PCF_WIDGET() );
     247    public function register_slider_widgets( $controls_manager ) {
     248        $controls_manager->register( new AJAX_LOAD_MORE\PD_PCF_WIDGET() );
    249249    }
    250250}
  • blog-posts-and-category-for-elementor/trunk/post-and-category-filter-for-elementor.php

    r3036705 r3113442  
    66 * Author URI: https://plugin-devs.com/
    77 * Plugin URI: https://plugin-devs.com/product/elementor-post-category-filter/
    8  * Version: 1.0.3
     8 * Version: 2.0.0
    99 * License: GPLv2
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4545        define( 'PD_PCF_PATH', plugin_dir_path( __FILE__ ) );
    4646        define( 'PD_PCF_URL', plugin_dir_url( __FILE__ ) ) ;
    47         define( 'PD_PCF_VERSION', '1.0.3' ) ; //Plugin Version
     47        define( 'PD_PCF_VERSION', '2.0.0' ) ; //Plugin Version
    4848        define( 'PD_PCF_MIN_ELEMENTOR_VERSION', '2.0.0' ) ; //MINIMUM ELEMENTOR Plugin Version
    49         define( 'PD_PCF_MIN_PHP_VERSION', '5.4' ) ; //MINIMUM PHP Plugin Version
     49        define( 'PD_PCF_MIN_PHP_VERSION', '7.4' ) ; //MINIMUM PHP Plugin Version
    5050        define( 'PD_PCF_PRO_LINK', 'https://plugin-devs.com/product/elementor-post-category-filter/' ) ; //Pro Link
    5151    }
  • blog-posts-and-category-for-elementor/trunk/readme.txt

    r3036705 r3113442  
    11Blog, Posts and Category Filter for Elementor
    22Tags: elementor blog filter, elementor category filter, elementor post filter, elementor filter posts by category
    3 Requires at least: 5.0 or higher
    4 Tested up to: 6.4.3
     3Requires at least: 6.0 or higher
     4Tested up to: 6.6
    55Stable tag: trunk
    6 Requires PHP: 5.4
     6Requires PHP: 7.4
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79= 2.0.0 (07-06-24) =
     80# Compatible with WordPress Latest Version
     81# Compatible with Elementor Latest Version
     82# Compatible with Elementor PRO Latest Version
     83# Add Escaping attributes to comply with latest WordFence and WordPress Security Updates
     84
    7985= 1.0.3 (02-16-24) =
    8086# Tweak CSS
  • blog-posts-and-category-for-elementor/trunk/widgets/post-category-filter.php

    r2706891 r3113442  
    880880                    // data-post__not_in="'.esc_attr(json_encode($post__not_in)).'"
    881881            echo '<div
    882                     class="pd-pcf-container '.$column_type_class.'"
     882                    class="pd-pcf-container '.esc_attr($column_type_class).'"
    883883                    id="wbel_pd_pcf_'.esc_attr($element_id).'"
    884                     data-columns_per_row="'.$columns_per_row.'"
    885                     data-post_types="'.$settings['post_types'].'"
     884                    data-columns_per_row="'.esc_attr($columns_per_row).'"
     885                    data-post_types="'.esc_attr($settings['post_types']).'"
    886886                    data-tax_query="'.esc_attr($tax_query).'"
    887887                    data-posts_per_page="'.esc_attr($settings['posts_per_page']).'"
     
    908908                        }
    909909                    ?>
    910                       <a href="#" class="pd-pcf-filter-btn" data-filter="*"><?php echo $show_all_text; ?></a>
     910                      <a href="#" class="pd-pcf-filter-btn" data-filter="*"><?php echo esc_html($show_all_text); ?></a>
    911911                      <?php
    912912                          if( !empty($all_terms) ){
    913913                              foreach ($all_terms as $term) {
    914914                                ?>
    915                                     <a href="#" class="pd-pcf-filter-btn" data-filter=".<?php echo $term['slug'].'-'.$term['term_id']; ?>"><?php echo $term['name']; ?></a>
     915                                    <a href="#" class="pd-pcf-filter-btn" data-filter=".<?php echo esc_attr($term['slug'].'-'.$term['term_id']); ?>"><?php echo esc_html($term['name']); ?></a>
    916916                                <?php
    917917                              }
Note: See TracChangeset for help on using the changeset viewer.