Plugin Directory

Changeset 2984903


Ignore:
Timestamp:
10/27/2023 11:42:09 AM (2 years ago)
Author:
davecpage
Message:

Updated to version 1.6.5

Location:
wp-dxp/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • wp-dxp/trunk/README.txt

    r2983034 r2984903  
    33Tags: personalization, personalisation, gutenberg, digital experience platform, show content, hide content, segmentation, conditions, rules, location
    44Requires at least: 6.0.0
    5 Tested up to: 6.3.2
    6 Stable tag: 1.6.4
     5Tested up to: 6.4
     6Stable tag: 1.6.5
    77Requires PHP: 7.3
    88License: GPLv2 or later
     
    6767
    6868== Changelog ==
     69
     70= 1.6.5 =
     71* Fix: Restore the ability to delete custom categories when there are no attached rules
     72* Security: Added extra checks around processing of data in the admin
    6973
    7074= 1.6.4 =
  • wp-dxp/trunk/admin/class-wp-dxp-admin-categories-page.php

    r2975253 r2984903  
    77    public function process()
    88    {
     9        // Double check for user caps before any possible processing of data.
     10        if ( ! current_user_can( 'manage_options' ) ) {
     11            return;
     12        }
     13
    914        $action = $this->request->get('wp_dxp_action');
    1015        if (!empty($this->request->form())) {
     
    2833    public function route()
    2934    {
     35        // Double check for user caps before any possible processing of data.
     36        if ( ! current_user_can( 'manage_options' ) ) {
     37            return;
     38        }
     39
    3040        $action = $this->request->get('wp_dxp_action');
    3141
  • wp-dxp/trunk/admin/class-wp-dxp-admin-rules-page.php

    r2975253 r2984903  
    77    public function process()
    88    {
     9        // Double check for user caps before any possible processing of data.
     10        if ( ! current_user_can( 'manage_options' ) ) {
     11            return;
     12        }
     13
    914        $action = $this->request->get('wp_dxp_action');
    1015        if (!empty($this->request->form())) {
     
    3035    public function route()
    3136    {
     37        // Double check for user caps before any possible processing of data.
     38        if ( ! current_user_can( 'manage_options' ) ) {
     39            return;
     40        }
     41
    3242        $action = $this->request->get('wp_dxp_action');
    3343
  • wp-dxp/trunk/admin/class-wp-dxp-admin.php

    r2983034 r2984903  
    322322    public function process()
    323323    {
     324        // Double check for user caps before any possible processing of data.
     325        if ( ! current_user_can( 'manage_options' ) ) {
     326            return;
     327        }
     328
    324329        $request = Wp_Dxp_Request::getInstance();
    325330        $page = $request->get('page', false);
     
    415420    public function migrateDb()
    416421    {
     422        // Double check for user caps before any possible processing of data.
     423        if ( ! current_user_can( 'manage_options' ) ) {
     424            return;
     425        }
     426
    417427        Wp_Dxp_DB_Manager::getInstance()->migrate();
    418428    }
  • wp-dxp/trunk/admin/css/wp-dxp-admin.css

    r2975253 r2984903  
    92409240  outline: 0;
    92419241}
     9242#wp-dxp .is-invalid ~ .invalid-feedback {
     9243  display: block;
     9244}
    92429245#wp-dxp .rule-message {
    92439246  color: red;
  • wp-dxp/trunk/includes/class-wp-dxp-db-manager.php

    r2916348 r2984903  
    1515    {
    1616        global $wpdb;
     17
     18        // Double check for user caps before any possible processing of data.
     19        if ( ! current_user_can( 'manage_options' ) ) {
     20            return;
     21        }
    1722
    1823        if(is_admin()) {
  • wp-dxp/trunk/includes/class-wp-dxp.php

    r2975253 r2984903  
    203203        $this->loader->add_filter( 'parent_file', $plugin_admin, 'setActiveAdminMenu' );
    204204
    205         $this->loader->add_action( 'init', $plugin_admin, 'migrateDb' );
    206 
    207         $this->loader->add_action( 'init', $plugin_admin, 'process' );
     205        // Restrict database changes to only occur within the admin.
     206        $this->loader->add_action( 'admin_init', $plugin_admin, 'migrateDb' );
     207
     208        // Restrict admin processing to running only in the admin.
     209        $this->loader->add_action( 'admin_init', $plugin_admin, 'process' );
    208210
    209211        $this->loader->add_action( 'rest_api_init', $plugin_admin, 'registerApiRoutes');
  • wp-dxp/trunk/includes/models/category.php

    r2881249 r2984903  
    7171    public function getCanDeleteAttribute()
    7272    {
    73         return 0 === $this->rules_count;
     73        return empty( $this->getRulesCountAttribute() );
    7474    }
    7575
  • wp-dxp/trunk/wp-dxp.php

    r2983034 r2984903  
    55 * Plugin URI:        https://filter.agency/about/personalizewp/
    66 * Description:       Use WordPress as a digital experience platform, adding personalization and conditional rules to the content that your users see and can interact with. Compete with commercial enterprise platforms and add your own rules to match user behavior on, then show or hide blocks based on if your conditions are met.
    7  * Version:           1.6.4
     7 * Version:           1.6.5
    88 * Author:            Filter
    99 * Author URI:        https://filter.agency
    1010 * Requires at least: 6.0.0
    11  * Tested up to:      6.3.2
     11 * Tested up to:      6.4
    1212 * Requires PHP:      7.3
    1313 * License:           GPL-2.0+
     
    2727 * Rename this for your plugin and update it as you release new versions.
    2828 */
    29 define( 'WP_DXP_VERSION', '1.6.4' );
     29define( 'WP_DXP_VERSION', '1.6.5' );
    3030
    3131/**
Note: See TracChangeset for help on using the changeset viewer.