Changeset 3252271
- Timestamp:
- 03/07/2025 03:49:54 PM (11 days ago)
- Location:
- web-stat/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
web-stat/trunk/Web-Stat.php
r3245295 r3252271 4 4 Plugin URI: https://www.web-stat.com/ 5 5 Description: Free, real-time stats for your website with full visitor details and traffic analytics. 6 Version: 2.5 6 Version: 2.5.1 7 7 Author: <a href="https://www.web-stat.com" target="_new">Web-Stat</a> 8 8 License: GPLv2 or later … … 167 167 __('Web-Stat Traffic Analytics', 'web-stat'), // Page title 168 168 __('Web-Stat', 'web-stat'), // Menu title 169 ' manage_options', // Capability169 'edit_others_posts', // Capability 170 170 'webstat-stats', // Menu slug (changed to avoid conflicts) 171 171 [$this, 'show_stats_page'], // Function to display the page … … 177 177 __('View Stats', 'web-stat'), // Page title 178 178 __('View Stats', 'web-stat'), // Submenu title (this will show in the submenu) 179 ' manage_options', // Capability179 'edit_others_posts', // Capability 180 180 'webstat-stats', // Menu slug 181 181 [$this, 'show_stats_page'] // Function to display the page … … 186 186 __('Configure', 'web-stat'), // Page title 187 187 __('Configure', 'web-stat'), // Submenu title 188 ' manage_options', // Capability188 'edit_others_posts', // Capability 189 189 'webstat-settings', // Menu slug 190 190 [$this, 'show_settings_page'] // Function to display the page … … 196 196 __('Get Support', 'web-stat'), // Page title 197 197 __('Get Support', 'web-stat'), // Menu title 198 ' manage_options', // Capability198 'edit_others_posts', // Capability 199 199 'webstat-contact', // Menu slug 200 200 [$this, 'show_contact_page'] // Function to display the page … … 206 206 __('Upgrade','web-stat'), // Page title 207 207 __('Upgrade', 'web-stat'), // Submenu title 208 ' manage_options', // Capability208 'edit_others_posts', // Capability 209 209 'webstat-plans', // Menu slug 210 210 [$this, 'show_plans_page'] // Function to display the iframe page … … 260 260 261 261 public function add_dashboard_widget() { 262 if ( ! current_user_can('edit_others_posts') ) { 263 return; 264 } 262 265 wp_add_dashboard_widget('wts_dashboard_widget', // Widget slug 263 266 __('Web-Stat', 'web-stat'), // Title … … 266 269 } 267 270 public function reorder_dashboard_widgets() { 271 if ( ! current_user_can('edit_others_posts') ) { 272 return; 273 } 268 274 global $wp_meta_boxes; 269 275 if (isset($wp_meta_boxes['dashboard']['normal']['core']['wts_dashboard_widget'])) { -
web-stat/trunk/readme.txt
r3252213 r3252271 5 5 Requires at least: 4.9.5 6 6 Tested up to: 6.7.2 7 Stable tag: 2.5 7 Stable tag: 2.5.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 116 116 117 117 == Changelog == 118 = 2.5.1 = 119 * Released: 2025-03-07 120 * Allowed stats access to editors 121 * Please uppdate your plugin to this version! 118 122 = 2.5 = 119 123 * Released: 2025-02-23
Note: See TracChangeset
for help on using the changeset viewer.