Plugin Directory

Changeset 3306579


Ignore:
Timestamp:
06/04/2025 03:33:40 PM (9 months ago)
Author:
ehtmlu
Message:

Version 3.0.2

Location:
advanced-settings
Files:
16 deleted
6 edited
18 copied

Legend:

Unmodified
Added
Removed
  • advanced-settings/tags/3.0.2/advanced-settings.php

    r3286786 r3306579  
    66Author: Helmut Wandl
    77Author URI: https://ehtmlu.com/
    8 Version: 3.0.1
     8Version: 3.0.2
    99Requires at least: 5.0.0
    1010Requires PHP: 7.4
  • advanced-settings/tags/3.0.2/feature-setup/features/developer.php

    r3281733 r3306579  
    260260
    261261        add_action('wp_ajax_advset_filters', function() {
    262             //echo $_POST['tag'].' - '.$_POST['function'];
    263 
    264262            // security
    265             if( !current_user_can('manage_options') )
    266                 return false;
    267 
    268             $remove_filters = (array) get_option( 'advset_remove_filters' );
     263            if (!current_user_can('manage_options')) {
     264                wp_send_json_error('Unauthorized');
     265                return;
     266            }
     267
     268            if (!isset($_POST['nonce']) || !wp_verify_nonce($_POST['nonce'], 'advset_filters_nonce')) {
     269                wp_send_json_error('Invalid nonce');
     270                return;
     271            }
     272
     273            $remove_filters = (array) get_option('advset_remove_filters');
    269274            $tag = (string)$_POST['tag'];
    270275            $function = (string)$_POST['function'];
    271276
    272             if( $_POST['enable']=='true' )
     277            if ($_POST['enable'] == 'true') {
    273278                unset($remove_filters[$tag][$function]);
    274             else if ( $_POST['enable']=='false' )
     279            } else if ($_POST['enable'] == 'false') {
    275280                $remove_filters[$tag][$function] = 1;
    276 
    277             update_option( 'advset_remove_filters', $remove_filters );
    278 
    279             return true;
    280         });
    281     },
    282     'priority' => 10,
    283 ]);
    284 
    285 
     281            }
     282
     283            update_option('advset_remove_filters', $remove_filters);
     284
     285            wp_send_json_success();
     286        });
     287    },
     288    'priority' => 10,
     289]);
     290
     291
  • advanced-settings/tags/3.0.2/feature-setup/features/includes/developer.settings_pages.hooks--admin-filters.php

    r3286786 r3306579  
    4646    <script>
    4747    jQuery('#advset_filters input').click(function(){
     48        const checkbox = this;
     49        let originalState = checkbox.checked;
     50       
    4851        jQuery.post( '<?php echo admin_url('admin-ajax.php'); ?>',
    4952            {
    50                 'action':'advset_filters',
    51                 'tag':this.name,
    52                 'function':this.value,
    53                 'enable':this.checked
     53                'action': 'advset_filters',
     54                'tag': checkbox.name,
     55                'function': checkbox.value,
     56                'enable': checkbox.checked,
     57                'nonce': '<?php echo wp_create_nonce('advset_filters_nonce'); ?>',
    5458            },
    5559            function(response){
    56                 //alert('The server responded: ' + response);
     60                if (!response.success) {
     61                    alert(response.data);
     62                    checkbox.checked = !originalState;
     63                    return;
     64                }
     65
     66                originalState = checkbox.checked;
    5767            }
    58         );
     68        ).fail(function() {
     69            alert('Connection error');
     70            checkbox.checked = !originalState;
     71        });
    5972    });
    6073    </script>
  • advanced-settings/tags/3.0.2/feature-setup/features/system.php

    r3286786 r3306579  
    130130        }
    131131    },
    132     'priority' => 30,
     132    'priority' => 20,
    133133]);
    134134
  • advanced-settings/tags/3.0.2/readme.txt

    r3287280 r3306579  
    88Requires at least: 5.0.0
    99Tested up to: 6.8
    10 Stable tag: 3.0.1
     10Stable tag: 3.0.2
    1111License: GPLv3 or later
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1818Advanced Settings is a powerful WordPress plugin that provides settings you would expect to find in the WordPress core. It is lightweight, performant and offers a modern, fast and user-friendly interface.
    1919
    20 == ⭐️ 2025 - COMPLETELY REVISED ==
    21 
    22 Advanced Settings 3 is a brand new and completely revised version. **Most of the reviews refer to a long outdated version (2017 and before)**. Please evaluate the plugin yourself and perhaps you could help with your own review so that the reviews reflect the current state of the plugin again.
     20**🚀 PERFORMANCE**
     21Advanced Settings 3 is optimized for extreme performance. It even loads only necessary PHP.
     22[→ details in FAQ](#will%20the%20plugin%20become%20slower%20with%20more%20features%3F)
     23
     24**🔒 SECURITY**
     25Advanced Settings 3 has been independently reviewed for security vulnerabilities via Patchstack.
     26[→ details in FAQ](how%20is%20the%20security%20of%20the%20plugin%20ensured%3F)
     27
     28**✳️ INFO ABOUT BAD REVIEWS**
     292 bad reviews occurred in 2017 because outdated PHP versions were used, but can't happen again.
     30[→ details in FAQ](#what%20caused%20the%20two%20bad%20ratings%3F)
    2331
    2432--
    2533
    26 == 🚀 PERFORMANCE ==
    27 
    28 **Advanced Settings 3 is optimized for extreme performance. It only loads what's necessary. You won't be able to measure any difference in loading speed, as it usually only loads a few lines of code.**
    29 
    30 --
    31 
    32 == 🩷 FEATURE REQUESTS ARE WELCOME ==
    33 
    34 **Advanced Settings 3 is designed to help as many people as possible. If you have a feature in mind that you'd like to see included in this plugin, let us know.**
    35 
    36 --
    37 
    38 == ⚙️ FEATURES ==
    39 
    40 **Advanced Settings 3 is brand new and the range of features is only just beginning to grow. Nevertheless, the plugin always remains extremely fast thanks to the sophisticated cache system, which only loads those features that are actually in use.**
    41 
    42 Here you will find a list of the features currently implemented:
     34== FEATURES ==
     35
     36**🩷 FEATURE REQUESTS ARE WELCOME**
     37Advanced Settings 3 was developed to help as many users as possible. If you'd like to see a feature added to this plugin, please let us know. Don't worry, we'll keep the plugin fast and lean; this is a high priority for us. We'll only implement features that don't conflict with this.
    4338
    4439= Dashboard =
     
    1061015. Configure your desired settings in each section
    107102
     103== Frequently Asked Questions ==
     104
     105= Will the plugin become slower with more features? =
     106
     107**Short answer:**
     108No, due to the way the plugin is designed, it would still be just as fast even with thousands of features. Don't worry, we don't add thousands of features.
     109
     110**Detailed answer:**
     111Advanced Settings 3 works as follows: Only when you open the plugin's settings window does the plugin recognise which settings are actually available. When saving, only the activated settings are written to a separate cache file. Only this cache file is then taken into account during operation. This means that slowdowns can only occur due to **active** features. However, as some features deactivate WordPress functions, the plugin can actually make WordPress even faster than in the standard configuration.
     112
     113= How is the security of the plugin ensured? =
     114
     115**Short answer:**
     116The experienced plugin developer is additionally supported by the [Patchstack](https://patchstack.com/) community to ensure the security of the plugin.
     117
     118**Detailed answer:**
     119The plugin is currently maintained by senior web developer Helmut Wandl, who has over 25 years of experience in web development. He is therefore familiar with various common security concepts for many years.
     120
     121In addition, the plugin is monitored by the [Patchstack](https://patchstack.com/) community, and if security vulnerabilities are discovered, they are reported and fixed by the plugin developer immediately or as soon as possible, depending on the urgency.
     122
     123= What caused the two bad ratings? =
     124
     125**Short answer:**
     126The bad ratings arose because a plugin update at the time no longer supported a very outdated PHP version, which unfortunately a few users were still using. However, due to a new WordPress feature, this cannot happen again.
     127
     128**Detailed answer:**
     129The plugin developer at the time had decided in 2017 to use PHP features that were introduced with PHP 5.4. Support for the previous version, PHP 5.3, had already been officially discontinued by The PHP Group 3 years earlier. It was therefore natural to assume that all websites actually in use had already been converted to PHP 5.4 or newer. Unfortunately, this was not the case for a few of them.
     130
     131Nowadays, you can specify in the plugin metadata which PHP version is required as a minimum for the plugin, so that users can only update the plugin if they are using the correct PHP version. While this WordPress feature came too late to prevent the problems and the negative reviews, this problem can fortunately be prevented in the future.
     132
     133It would be great if you could contribute with your own review to ensure that the ratings reflect the current state of the plugin.
     134
    108135== Screenshots ==
    109136
     
    113140
    114141== Changelog ==
     142
     143= 3.0.2 - 2025-06-04 =
     144* Fixed order of features
     145* Fixed a minor security issue in old code (rated as low priority by [Patchstack](https://patchstack.com/))
    115146
    116147= 3.0.1 - 2025-05-03 =
  • advanced-settings/trunk/advanced-settings.php

    r3286786 r3306579  
    66Author: Helmut Wandl
    77Author URI: https://ehtmlu.com/
    8 Version: 3.0.1
     8Version: 3.0.2
    99Requires at least: 5.0.0
    1010Requires PHP: 7.4
  • advanced-settings/trunk/feature-setup/features/developer.php

    r3281733 r3306579  
    260260
    261261        add_action('wp_ajax_advset_filters', function() {
    262             //echo $_POST['tag'].' - '.$_POST['function'];
    263 
    264262            // security
    265             if( !current_user_can('manage_options') )
    266                 return false;
    267 
    268             $remove_filters = (array) get_option( 'advset_remove_filters' );
     263            if (!current_user_can('manage_options')) {
     264                wp_send_json_error('Unauthorized');
     265                return;
     266            }
     267
     268            if (!isset($_POST['nonce']) || !wp_verify_nonce($_POST['nonce'], 'advset_filters_nonce')) {
     269                wp_send_json_error('Invalid nonce');
     270                return;
     271            }
     272
     273            $remove_filters = (array) get_option('advset_remove_filters');
    269274            $tag = (string)$_POST['tag'];
    270275            $function = (string)$_POST['function'];
    271276
    272             if( $_POST['enable']=='true' )
     277            if ($_POST['enable'] == 'true') {
    273278                unset($remove_filters[$tag][$function]);
    274             else if ( $_POST['enable']=='false' )
     279            } else if ($_POST['enable'] == 'false') {
    275280                $remove_filters[$tag][$function] = 1;
    276 
    277             update_option( 'advset_remove_filters', $remove_filters );
    278 
    279             return true;
    280         });
    281     },
    282     'priority' => 10,
    283 ]);
    284 
    285 
     281            }
     282
     283            update_option('advset_remove_filters', $remove_filters);
     284
     285            wp_send_json_success();
     286        });
     287    },
     288    'priority' => 10,
     289]);
     290
     291
  • advanced-settings/trunk/feature-setup/features/includes/developer.settings_pages.hooks--admin-filters.php

    r3286786 r3306579  
    4646    <script>
    4747    jQuery('#advset_filters input').click(function(){
     48        const checkbox = this;
     49        let originalState = checkbox.checked;
     50       
    4851        jQuery.post( '<?php echo admin_url('admin-ajax.php'); ?>',
    4952            {
    50                 'action':'advset_filters',
    51                 'tag':this.name,
    52                 'function':this.value,
    53                 'enable':this.checked
     53                'action': 'advset_filters',
     54                'tag': checkbox.name,
     55                'function': checkbox.value,
     56                'enable': checkbox.checked,
     57                'nonce': '<?php echo wp_create_nonce('advset_filters_nonce'); ?>',
    5458            },
    5559            function(response){
    56                 //alert('The server responded: ' + response);
     60                if (!response.success) {
     61                    alert(response.data);
     62                    checkbox.checked = !originalState;
     63                    return;
     64                }
     65
     66                originalState = checkbox.checked;
    5767            }
    58         );
     68        ).fail(function() {
     69            alert('Connection error');
     70            checkbox.checked = !originalState;
     71        });
    5972    });
    6073    </script>
  • advanced-settings/trunk/feature-setup/features/system.php

    r3286786 r3306579  
    130130        }
    131131    },
    132     'priority' => 30,
     132    'priority' => 20,
    133133]);
    134134
  • advanced-settings/trunk/readme.txt

    r3287280 r3306579  
    88Requires at least: 5.0.0
    99Tested up to: 6.8
    10 Stable tag: 3.0.1
     10Stable tag: 3.0.2
    1111License: GPLv3 or later
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1818Advanced Settings is a powerful WordPress plugin that provides settings you would expect to find in the WordPress core. It is lightweight, performant and offers a modern, fast and user-friendly interface.
    1919
    20 == ⭐️ 2025 - COMPLETELY REVISED ==
    21 
    22 Advanced Settings 3 is a brand new and completely revised version. **Most of the reviews refer to a long outdated version (2017 and before)**. Please evaluate the plugin yourself and perhaps you could help with your own review so that the reviews reflect the current state of the plugin again.
     20**🚀 PERFORMANCE**
     21Advanced Settings 3 is optimized for extreme performance. It even loads only necessary PHP.
     22[→ details in FAQ](#will%20the%20plugin%20become%20slower%20with%20more%20features%3F)
     23
     24**🔒 SECURITY**
     25Advanced Settings 3 has been independently reviewed for security vulnerabilities via Patchstack.
     26[→ details in FAQ](how%20is%20the%20security%20of%20the%20plugin%20ensured%3F)
     27
     28**✳️ INFO ABOUT BAD REVIEWS**
     292 bad reviews occurred in 2017 because outdated PHP versions were used, but can't happen again.
     30[→ details in FAQ](#what%20caused%20the%20two%20bad%20ratings%3F)
    2331
    2432--
    2533
    26 == 🚀 PERFORMANCE ==
    27 
    28 **Advanced Settings 3 is optimized for extreme performance. It only loads what's necessary. You won't be able to measure any difference in loading speed, as it usually only loads a few lines of code.**
    29 
    30 --
    31 
    32 == 🩷 FEATURE REQUESTS ARE WELCOME ==
    33 
    34 **Advanced Settings 3 is designed to help as many people as possible. If you have a feature in mind that you'd like to see included in this plugin, let us know.**
    35 
    36 --
    37 
    38 == ⚙️ FEATURES ==
    39 
    40 **Advanced Settings 3 is brand new and the range of features is only just beginning to grow. Nevertheless, the plugin always remains extremely fast thanks to the sophisticated cache system, which only loads those features that are actually in use.**
    41 
    42 Here you will find a list of the features currently implemented:
     34== FEATURES ==
     35
     36**🩷 FEATURE REQUESTS ARE WELCOME**
     37Advanced Settings 3 was developed to help as many users as possible. If you'd like to see a feature added to this plugin, please let us know. Don't worry, we'll keep the plugin fast and lean; this is a high priority for us. We'll only implement features that don't conflict with this.
    4338
    4439= Dashboard =
     
    1061015. Configure your desired settings in each section
    107102
     103== Frequently Asked Questions ==
     104
     105= Will the plugin become slower with more features? =
     106
     107**Short answer:**
     108No, due to the way the plugin is designed, it would still be just as fast even with thousands of features. Don't worry, we don't add thousands of features.
     109
     110**Detailed answer:**
     111Advanced Settings 3 works as follows: Only when you open the plugin's settings window does the plugin recognise which settings are actually available. When saving, only the activated settings are written to a separate cache file. Only this cache file is then taken into account during operation. This means that slowdowns can only occur due to **active** features. However, as some features deactivate WordPress functions, the plugin can actually make WordPress even faster than in the standard configuration.
     112
     113= How is the security of the plugin ensured? =
     114
     115**Short answer:**
     116The experienced plugin developer is additionally supported by the [Patchstack](https://patchstack.com/) community to ensure the security of the plugin.
     117
     118**Detailed answer:**
     119The plugin is currently maintained by senior web developer Helmut Wandl, who has over 25 years of experience in web development. He is therefore familiar with various common security concepts for many years.
     120
     121In addition, the plugin is monitored by the [Patchstack](https://patchstack.com/) community, and if security vulnerabilities are discovered, they are reported and fixed by the plugin developer immediately or as soon as possible, depending on the urgency.
     122
     123= What caused the two bad ratings? =
     124
     125**Short answer:**
     126The bad ratings arose because a plugin update at the time no longer supported a very outdated PHP version, which unfortunately a few users were still using. However, due to a new WordPress feature, this cannot happen again.
     127
     128**Detailed answer:**
     129The plugin developer at the time had decided in 2017 to use PHP features that were introduced with PHP 5.4. Support for the previous version, PHP 5.3, had already been officially discontinued by The PHP Group 3 years earlier. It was therefore natural to assume that all websites actually in use had already been converted to PHP 5.4 or newer. Unfortunately, this was not the case for a few of them.
     130
     131Nowadays, you can specify in the plugin metadata which PHP version is required as a minimum for the plugin, so that users can only update the plugin if they are using the correct PHP version. While this WordPress feature came too late to prevent the problems and the negative reviews, this problem can fortunately be prevented in the future.
     132
     133It would be great if you could contribute with your own review to ensure that the ratings reflect the current state of the plugin.
     134
    108135== Screenshots ==
    109136
     
    113140
    114141== Changelog ==
     142
     143= 3.0.2 - 2025-06-04 =
     144* Fixed order of features
     145* Fixed a minor security issue in old code (rated as low priority by [Patchstack](https://patchstack.com/))
    115146
    116147= 3.0.1 - 2025-05-03 =
Note: See TracChangeset for help on using the changeset viewer.