Changeset 3423917
- Timestamp:
- 12/19/2025 06:09:21 PM (3 months ago)
- Location:
- wpecounter
- Files:
-
- 40 added
- 3 edited
-
tags/2.1.3 (added)
-
tags/2.1.3/.gitignore (added)
-
tags/2.1.3/LICENSE (added)
-
tags/2.1.3/README.md (added)
-
tags/2.1.3/assets (added)
-
tags/2.1.3/assets/css (added)
-
tags/2.1.3/assets/css/settings.css (added)
-
tags/2.1.3/assets/js (added)
-
tags/2.1.3/assets/js/reset-views.js (added)
-
tags/2.1.3/assets/js/settings.js (added)
-
tags/2.1.3/block.json (added)
-
tags/2.1.3/build (added)
-
tags/2.1.3/build/index.asset.php (added)
-
tags/2.1.3/build/index.js (added)
-
tags/2.1.3/includes (added)
-
tags/2.1.3/includes/class-views.php (added)
-
tags/2.1.3/includes/functions.php (added)
-
tags/2.1.3/includes/plugin-utils.php (added)
-
tags/2.1.3/includes/scripts.php (added)
-
tags/2.1.3/includes/settings.php (added)
-
tags/2.1.3/includes/version.php (added)
-
tags/2.1.3/includes/widget.php (added)
-
tags/2.1.3/index.php (added)
-
tags/2.1.3/languages (added)
-
tags/2.1.3/languages/wpecounter-en_US.pot (added)
-
tags/2.1.3/languages/wpecounter-es_ES.mo (added)
-
tags/2.1.3/languages/wpecounter-es_ES.po (added)
-
tags/2.1.3/languages/wpecounter-sr_RS.mo (added)
-
tags/2.1.3/languages/wpecounter-sr_RS.po (added)
-
tags/2.1.3/package-lock.json (added)
-
tags/2.1.3/package.json (added)
-
tags/2.1.3/readme.txt (added)
-
tags/2.1.3/screenshot-1.png (added)
-
tags/2.1.3/screenshot-2.png (added)
-
tags/2.1.3/screenshot-3.png (added)
-
tags/2.1.3/screenshot-4.png (added)
-
tags/2.1.3/src (added)
-
tags/2.1.3/src/index.js (added)
-
tags/2.1.3/src/style-index.css (added)
-
tags/2.1.3/wpecounter.php (added)
-
trunk/includes/settings.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wpecounter.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpecounter/trunk/includes/settings.php
r3401115 r3423917 78 78 public function register_settings() { 79 79 80 // Security: only admins 81 if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) { 82 return; 83 } 80 84 // no options - create them. 81 85 if (false == get_option($this->options_key)) { … … 205 209 */ 206 210 // Handle reset counters action 207 if (isset($_POST['reset_counters_btn']) ) {211 if (isset($_POST['reset_counters_btn']) && check_admin_referer('wpecounter_reset_counters', 'wpecounter_reset_nonce') ) { 208 212 global $wpdb; 209 213 if (!isset($WPeCounterViews)) { … … 299 303 <div class="inside"> 300 304 <h3><span class="dashicons dashicons-sos"></span><?php _e('Danger Area', 'wpecounter'); ?></h3> 305 <?php wp_nonce_field( 'wpecounter_reset_counters', 'wpecounter_reset_nonce' ); ?> 301 306 <hr /> 302 307 <?php -
wpecounter/trunk/readme.txt
r3401115 r3423917 4 4 Tags: post views, views counter, popular posts, ajax counter, analytics 5 5 Requires at least: 3.1 6 Tested up to: 6. 8.27 Requires PHP: 5.68 Stable tag: 2.1. 26 Tested up to: 6.9 7 Requires PHP: 7.0 8 Stable tag: 2.1.3 9 9 License: GPLv2 10 10 … … 55 55 56 56 == Changelog == 57 58 = 2.1.3 – Dec 19, 2025 = 59 * Security: Improved access control and request validation in admin settings. 60 * Added proper capability checks to restrict sensitive actions to administrators only. 61 * Added nonce verification to protect destructive actions against unauthorized requests. 62 * General hardening of admin-side logic. 57 63 58 64 = 2.1.2 – Nov 19, 2025 = … … 120 126 121 127 == Upgrade Notice == 122 Fully compatible with WP 6. 8.2. Fixed PHP Warnings displayed in DEBUG mode128 Fully compatible with WP 6.9 and Security Fixes! -
wpecounter/trunk/wpecounter.php
r3401115 r3423917 4 4 * Plugin URI: https://etruel.com/downloads/wpecounter 5 5 * Description: Counts visits on post lists, pages and/or custom post types. It also displays them in posts, pages or text widget content, shortcode [WPeCounter]. 6 * Version: 2.1. 26 * Version: 2.1.3 7 7 * Author: Etruel Developments LLC 8 8 * Author URI: https://etruel.com … … 15 15 // Plugin version 16 16 if (!defined('WPECOUNTER_VERSION')) 17 define('WPECOUNTER_VERSION', '2.1. 2');17 define('WPECOUNTER_VERSION', '2.1.3'); 18 18 19 19 if (!class_exists('WPeCounter')) :
Note: See TracChangeset
for help on using the changeset viewer.