Changeset 3306579
- Timestamp:
- 06/04/2025 03:33:40 PM (9 months ago)
- Location:
- advanced-settings
- Files:
-
- 16 deleted
- 6 edited
- 18 copied
-
tags/3.0.2 (copied) (copied from advanced-settings/trunk)
-
tags/3.0.2/actions-scripts.php (deleted)
-
tags/3.0.2/actions-styles.php (deleted)
-
tags/3.0.2/admin-advset.php (deleted)
-
tags/3.0.2/admin-code.php (deleted)
-
tags/3.0.2/admin-filters.php (deleted)
-
tags/3.0.2/admin-get-in-touch.php (deleted)
-
tags/3.0.2/admin-post-types.php (deleted)
-
tags/3.0.2/admin-scripts.php (deleted)
-
tags/3.0.2/admin-styles.php (deleted)
-
tags/3.0.2/admin-system.php (deleted)
-
tags/3.0.2/admin-ui (copied) (copied from advanced-settings/trunk/admin-ui)
-
tags/3.0.2/admin-ui/admin-ui.php (copied) (copied from advanced-settings/trunk/admin-ui/admin-ui.php)
-
tags/3.0.2/admin-ui/react/app.js (copied) (copied from advanced-settings/trunk/admin-ui/react/app.js)
-
tags/3.0.2/advanced-settings.php (copied) (copied from advanced-settings/trunk/advanced-settings.php) (1 diff)
-
tags/3.0.2/class.resize.php (deleted)
-
tags/3.0.2/class.tracksettings.php (deleted)
-
tags/3.0.2/feature-setup (copied) (copied from advanced-settings/trunk/feature-setup)
-
tags/3.0.2/feature-setup/features/developer.php (modified) (1 diff)
-
tags/3.0.2/feature-setup/features/includes/developer.settings_pages.hooks--admin-filters.php (copied) (copied from advanced-settings/trunk/feature-setup/features/includes/developer.settings_pages.hooks--admin-filters.php) (1 diff)
-
tags/3.0.2/feature-setup/features/includes/developer.settings_pages.php (copied) (copied from advanced-settings/trunk/feature-setup/features/includes/developer.settings_pages.php)
-
tags/3.0.2/feature-setup/features/includes/developer.settings_pages.post_types--admin-post-types.php (copied) (copied from advanced-settings/trunk/feature-setup/features/includes/developer.settings_pages.post_types--admin-post-types.php)
-
tags/3.0.2/feature-setup/features/includes/developer.settings_pages.scripts--actions-scripts.php (copied) (copied from advanced-settings/trunk/feature-setup/features/includes/developer.settings_pages.scripts--actions-scripts.php)
-
tags/3.0.2/feature-setup/features/includes/developer.settings_pages.scripts--admin-scripts.php (copied) (copied from advanced-settings/trunk/feature-setup/features/includes/developer.settings_pages.scripts--admin-scripts.php)
-
tags/3.0.2/feature-setup/features/includes/developer.settings_pages.styles--actions-styles.php (copied) (copied from advanced-settings/trunk/feature-setup/features/includes/developer.settings_pages.styles--actions-styles.php)
-
tags/3.0.2/feature-setup/features/includes/developer.settings_pages.styles--admin-styles.php (copied) (copied from advanced-settings/trunk/feature-setup/features/includes/developer.settings_pages.styles--admin-styles.php)
-
tags/3.0.2/feature-setup/features/system.php (copied) (copied from advanced-settings/trunk/feature-setup/features/system.php) (1 diff)
-
tags/3.0.2/includes (copied) (copied from advanced-settings/trunk/includes)
-
tags/3.0.2/index.php (copied) (copied from advanced-settings/trunk/index.php)
-
tags/3.0.2/migrations (copied) (copied from advanced-settings/trunk/migrations)
-
tags/3.0.2/readme.txt (copied) (copied from advanced-settings/trunk/readme.txt) (4 diffs)
-
tags/3.0.2/screenshot-1.png (deleted)
-
tags/3.0.2/screenshot-2.png (deleted)
-
tags/3.0.2/screenshot-3.png (deleted)
-
tags/3.0.2/updates (deleted)
-
trunk/advanced-settings.php (modified) (1 diff)
-
trunk/feature-setup/features/developer.php (modified) (1 diff)
-
trunk/feature-setup/features/includes/developer.settings_pages.hooks--admin-filters.php (modified) (1 diff)
-
trunk/feature-setup/features/system.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-settings/tags/3.0.2/advanced-settings.php
r3286786 r3306579 6 6 Author: Helmut Wandl 7 7 Author URI: https://ehtmlu.com/ 8 Version: 3.0. 18 Version: 3.0.2 9 9 Requires at least: 5.0.0 10 10 Requires PHP: 7.4 -
advanced-settings/tags/3.0.2/feature-setup/features/developer.php
r3281733 r3306579 260 260 261 261 add_action('wp_ajax_advset_filters', function() { 262 //echo $_POST['tag'].' - '.$_POST['function'];263 264 262 // 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'); 269 274 $tag = (string)$_POST['tag']; 270 275 $function = (string)$_POST['function']; 271 276 272 if ( $_POST['enable']=='true' )277 if ($_POST['enable'] == 'true') { 273 278 unset($remove_filters[$tag][$function]); 274 else if ( $_POST['enable']=='false' )279 } else if ($_POST['enable'] == 'false') { 275 280 $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 46 46 <script> 47 47 jQuery('#advset_filters input').click(function(){ 48 const checkbox = this; 49 let originalState = checkbox.checked; 50 48 51 jQuery.post( '<?php echo admin_url('admin-ajax.php'); ?>', 49 52 { 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'); ?>', 54 58 }, 55 59 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; 57 67 } 58 ); 68 ).fail(function() { 69 alert('Connection error'); 70 checkbox.checked = !originalState; 71 }); 59 72 }); 60 73 </script> -
advanced-settings/tags/3.0.2/feature-setup/features/system.php
r3286786 r3306579 130 130 } 131 131 }, 132 'priority' => 30,132 'priority' => 20, 133 133 ]); 134 134 -
advanced-settings/tags/3.0.2/readme.txt
r3287280 r3306579 8 8 Requires at least: 5.0.0 9 9 Tested up to: 6.8 10 Stable tag: 3.0. 110 Stable tag: 3.0.2 11 11 License: GPLv3 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 18 18 Advanced 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. 19 19 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** 21 Advanced 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** 25 Advanced 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** 29 2 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) 23 31 24 32 -- 25 33 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** 37 Advanced 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. 43 38 44 39 = Dashboard = … … 106 101 5. Configure your desired settings in each section 107 102 103 == Frequently Asked Questions == 104 105 = Will the plugin become slower with more features? = 106 107 **Short answer:** 108 No, 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:** 111 Advanced 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:** 116 The experienced plugin developer is additionally supported by the [Patchstack](https://patchstack.com/) community to ensure the security of the plugin. 117 118 **Detailed answer:** 119 The 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 121 In 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:** 126 The 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:** 129 The 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 131 Nowadays, 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 133 It would be great if you could contribute with your own review to ensure that the ratings reflect the current state of the plugin. 134 108 135 == Screenshots == 109 136 … … 113 140 114 141 == 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/)) 115 146 116 147 = 3.0.1 - 2025-05-03 = -
advanced-settings/trunk/advanced-settings.php
r3286786 r3306579 6 6 Author: Helmut Wandl 7 7 Author URI: https://ehtmlu.com/ 8 Version: 3.0. 18 Version: 3.0.2 9 9 Requires at least: 5.0.0 10 10 Requires PHP: 7.4 -
advanced-settings/trunk/feature-setup/features/developer.php
r3281733 r3306579 260 260 261 261 add_action('wp_ajax_advset_filters', function() { 262 //echo $_POST['tag'].' - '.$_POST['function'];263 264 262 // 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'); 269 274 $tag = (string)$_POST['tag']; 270 275 $function = (string)$_POST['function']; 271 276 272 if ( $_POST['enable']=='true' )277 if ($_POST['enable'] == 'true') { 273 278 unset($remove_filters[$tag][$function]); 274 else if ( $_POST['enable']=='false' )279 } else if ($_POST['enable'] == 'false') { 275 280 $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 46 46 <script> 47 47 jQuery('#advset_filters input').click(function(){ 48 const checkbox = this; 49 let originalState = checkbox.checked; 50 48 51 jQuery.post( '<?php echo admin_url('admin-ajax.php'); ?>', 49 52 { 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'); ?>', 54 58 }, 55 59 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; 57 67 } 58 ); 68 ).fail(function() { 69 alert('Connection error'); 70 checkbox.checked = !originalState; 71 }); 59 72 }); 60 73 </script> -
advanced-settings/trunk/feature-setup/features/system.php
r3286786 r3306579 130 130 } 131 131 }, 132 'priority' => 30,132 'priority' => 20, 133 133 ]); 134 134 -
advanced-settings/trunk/readme.txt
r3287280 r3306579 8 8 Requires at least: 5.0.0 9 9 Tested up to: 6.8 10 Stable tag: 3.0. 110 Stable tag: 3.0.2 11 11 License: GPLv3 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 18 18 Advanced 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. 19 19 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** 21 Advanced 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** 25 Advanced 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** 29 2 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) 23 31 24 32 -- 25 33 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** 37 Advanced 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. 43 38 44 39 = Dashboard = … … 106 101 5. Configure your desired settings in each section 107 102 103 == Frequently Asked Questions == 104 105 = Will the plugin become slower with more features? = 106 107 **Short answer:** 108 No, 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:** 111 Advanced 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:** 116 The experienced plugin developer is additionally supported by the [Patchstack](https://patchstack.com/) community to ensure the security of the plugin. 117 118 **Detailed answer:** 119 The 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 121 In 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:** 126 The 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:** 129 The 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 131 Nowadays, 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 133 It would be great if you could contribute with your own review to ensure that the ratings reflect the current state of the plugin. 134 108 135 == Screenshots == 109 136 … … 113 140 114 141 == 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/)) 115 146 116 147 = 3.0.1 - 2025-05-03 =
Note: See TracChangeset
for help on using the changeset viewer.