Plugin Directory

Changeset 3252271


Ignore:
Timestamp:
03/07/2025 03:49:54 PM (11 days ago)
Author:
webstat
Message:

Version 2.5.1 allow editor access to the stats. Please uppdate your plugin to this version

Location:
web-stat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • web-stat/trunk/Web-Stat.php

    r3245295 r3252271  
    44Plugin URI: https://www.web-stat.com/
    55Description: Free, real-time stats for your website with full visitor details and traffic analytics.
    6 Version: 2.5
     6Version: 2.5.1
    77Author: <a href="https://www.web-stat.com" target="_new">Web-Stat</a>
    88License: GPLv2 or later
     
    167167            __('Web-Stat Traffic Analytics', 'web-stat'), // Page title
    168168            __('Web-Stat', 'web-stat'), // Menu title
    169             'manage_options', // Capability
     169            'edit_others_posts', // Capability
    170170            'webstat-stats', // Menu slug (changed to avoid conflicts)
    171171            [$this, 'show_stats_page'], // Function to display the page
     
    177177            __('View Stats', 'web-stat'), // Page title
    178178            __('View Stats', 'web-stat'), // Submenu title (this will show in the submenu)
    179             'manage_options', // Capability
     179            'edit_others_posts', // Capability
    180180            'webstat-stats', // Menu slug
    181181            [$this, 'show_stats_page'] // Function to display the page
     
    186186            __('Configure', 'web-stat'), // Page title
    187187            __('Configure', 'web-stat'), // Submenu title
    188             'manage_options', // Capability
     188            'edit_others_posts', // Capability
    189189            'webstat-settings', // Menu slug
    190190            [$this, 'show_settings_page'] // Function to display the page
     
    196196            __('Get Support', 'web-stat'), // Page title
    197197            __('Get Support', 'web-stat'), // Menu title
    198             'manage_options', // Capability
     198            'edit_others_posts', // Capability
    199199            'webstat-contact', // Menu slug
    200200            [$this, 'show_contact_page'] // Function to display the page
     
    206206            __('Upgrade','web-stat'), // Page title
    207207            __('Upgrade', 'web-stat'), // Submenu title
    208             'manage_options', // Capability
     208            'edit_others_posts', // Capability
    209209            'webstat-plans', // Menu slug
    210210            [$this, 'show_plans_page'] // Function to display the iframe page
     
    260260   
    261261    public function add_dashboard_widget() {
     262        if ( ! current_user_can('edit_others_posts') ) {
     263            return;
     264        }
    262265        wp_add_dashboard_widget('wts_dashboard_widget', // Widget slug
    263266        __('Web-Stat', 'web-stat'), // Title
     
    266269    }
    267270    public function reorder_dashboard_widgets() {
     271            if ( ! current_user_can('edit_others_posts') ) {
     272            return;
     273        }
    268274        global $wp_meta_boxes;
    269275        if (isset($wp_meta_boxes['dashboard']['normal']['core']['wts_dashboard_widget'])) {
  • web-stat/trunk/readme.txt

    r3252213 r3252271  
    55Requires at least: 4.9.5
    66Tested up to: 6.7.2
    7 Stable tag: 2.5
     7Stable tag: 2.5.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    116116
    117117== Changelog ==
     118= 2.5.1 =
     119* Released: 2025-03-07
     120* Allowed stats access to editors
     121* Please uppdate your plugin to this version!
    118122= 2.5 =
    119123* Released: 2025-02-23
Note: See TracChangeset for help on using the changeset viewer.