Changeset 3401115
- Timestamp:
- 11/23/2025 01:03:19 AM (4 months ago)
- Location:
- wpecounter
- Files:
-
- 40 added
- 4 edited
-
tags/2.1.2 (added)
-
tags/2.1.2/.gitignore (added)
-
tags/2.1.2/LICENSE (added)
-
tags/2.1.2/README.md (added)
-
tags/2.1.2/assets (added)
-
tags/2.1.2/assets/css (added)
-
tags/2.1.2/assets/css/settings.css (added)
-
tags/2.1.2/assets/js (added)
-
tags/2.1.2/assets/js/reset-views.js (added)
-
tags/2.1.2/assets/js/settings.js (added)
-
tags/2.1.2/block.json (added)
-
tags/2.1.2/build (added)
-
tags/2.1.2/build/index.asset.php (added)
-
tags/2.1.2/build/index.js (added)
-
tags/2.1.2/includes (added)
-
tags/2.1.2/includes/class-views.php (added)
-
tags/2.1.2/includes/functions.php (added)
-
tags/2.1.2/includes/plugin-utils.php (added)
-
tags/2.1.2/includes/scripts.php (added)
-
tags/2.1.2/includes/settings.php (added)
-
tags/2.1.2/includes/version.php (added)
-
tags/2.1.2/includes/widget.php (added)
-
tags/2.1.2/index.php (added)
-
tags/2.1.2/languages (added)
-
tags/2.1.2/languages/wpecounter-en_US.pot (added)
-
tags/2.1.2/languages/wpecounter-es_ES.mo (added)
-
tags/2.1.2/languages/wpecounter-es_ES.po (added)
-
tags/2.1.2/languages/wpecounter-sr_RS.mo (added)
-
tags/2.1.2/languages/wpecounter-sr_RS.po (added)
-
tags/2.1.2/package-lock.json (added)
-
tags/2.1.2/package.json (added)
-
tags/2.1.2/readme.txt (added)
-
tags/2.1.2/screenshot-1.png (added)
-
tags/2.1.2/screenshot-2.png (added)
-
tags/2.1.2/screenshot-3.png (added)
-
tags/2.1.2/screenshot-4.png (added)
-
tags/2.1.2/src (added)
-
tags/2.1.2/src/index.js (added)
-
tags/2.1.2/src/style-index.css (added)
-
tags/2.1.2/wpecounter.php (added)
-
trunk/includes/class-views.php (modified) (1 diff)
-
trunk/includes/settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpecounter.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpecounter/trunk/includes/class-views.php
r3368930 r3401115 438 438 // AJAX handler to reset views 439 439 public function ajax_reset_views() { 440 if ( 441 !isset($_POST['post_id'], $_POST['nonce']) || 442 !wp_verify_nonce($_POST['nonce'], 'wpecounter_reset_views_' . absint($_POST['post_id'])) 443 ) { 444 wp_send_json_error(array('message' => __('Invalid request.', 'wpecounter'))); 445 } 440 441 if (!current_user_can('manage_options') || !wp_verify_nonce($_POST['nonce'], 'wpecounter_reset_views_' . absint($_POST['post_id']))) { 442 wp_send_json_error(array('message' => __('Invalid permissions.', 'wpecounter'))); 443 } 444 446 445 $post_id = absint($_POST['post_id']); 447 446 if ($post_id) { -
wpecounter/trunk/includes/settings.php
r3311724 r3401115 484 484 public function sanitize_options($input) { 485 485 global $wpdb; 486 487 if(current_user_can('manage_options')===false){ 488 return $input; 489 } 486 490 // Initialize the new array that will hold the sanitize values 487 491 $new_input = array(); -
wpecounter/trunk/readme.txt
r3368930 r3401115 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 5.6 8 Stable tag: 2.1. 18 Stable tag: 2.1.2 9 9 License: GPLv2 10 10 … … 55 55 56 56 == Changelog == 57 58 = 2.1.2 – Nov 19, 2025 = 59 * Add security to reset function 57 60 58 61 = 2.1.1 – Sep 25, 2025 = -
wpecounter/trunk/wpecounter.php
r3368930 r3401115 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. 16 * Version: 2.1.2 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. 1');17 define('WPECOUNTER_VERSION', '2.1.2'); 18 18 19 19 if (!class_exists('WPeCounter')) :
Note: See TracChangeset
for help on using the changeset viewer.