Plugin Directory

Changeset 1339039


Ignore:
Timestamp:
01/29/2016 04:41:09 PM (10 years ago)
Author:
maxwellberkel
Message:

Fixed a bug with permissions and updated version to 1.0.3

Location:
wp-log-viewer
Files:
33 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-log-viewer/trunk/humans.txt

    r1318896 r1339039  
    66
    77/* META */
    8 Updated: 2015/12/29
     8Updated: 2016/01/29
    99See: http://humanstxt.org/
  • wp-log-viewer/trunk/libs/Plugin.php

    r1338445 r1339039  
    3232     * @since 1.0.1
    3333     */
    34     var $user_authorized = false;
     34    var $user_authorized = true;
    3535
    3636
     
    6363     */
    6464    public function check_if_authorized() {
    65         $this->user_authorized = apply_filters('wplv_user_authorized', \current_user_can('manage_options'));
     65        $authorized = \current_user_can('manage_options');
     66        $this->user_authorized = apply_filters('wplv_user_authorized', $authorized);
    6667    }
    6768
     
    129130     */
    130131    public function register_dashboard_widgets() {
    131         $show_dashboard_widget = apply_filters('wplv_show_dashboard_widget', true);
    132 
    133         if ($this->user_authorized && $show_dashboard_widget) {
     132        $show_dashboard_widget = apply_filters('wplv_show_dashboard_widget', $this->user_authorized);
     133
     134        if ($show_dashboard_widget) {
    134135            \wp_add_dashboard_widget('wplv-widget', 'WP Log Viewer', [$this, 'display_dashboard_widget']);
    135136        }
     
    153154     */
    154155    public function add_admin_bar_menu($admin_bar) {
    155         $show_adminbar = apply_filters('wplv_show_adminbar_widget', true);
    156 
    157         if ($this->user_authorized && $show_adminbar) {
     156        $show_adminbar = apply_filters('wplv_show_adminbar_widget', $this->user_authorized);
     157
     158        if ($show_adminbar) {
    158159            $admin_bar->add_node([
    159160                'id'    => 'wplv-menu',
     
    180181
    181182            if ($url_path == '/debugging/download/log/') {
    182                 $can_download = apply_filters('wplv_can_download_log', \current_user_can('manage_options'));
     183                $can_download = apply_filters('wplv_can_download_log', $this->user_authorized);
    183184
    184185                if ($can_download) {
  • wp-log-viewer/trunk/readme.txt

    r1338460 r1339039  
    66Requires at least: 3.9
    77Tested up to: 4.4
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99
    1010One click enable/disable debugging, clear debug.log, search, sort, and filter errors.  See new errors automatically without refreshing.
     
    219219All notable changes will be tracked in this change log.
    220220
     221= 1.0.3 =
     222Release date: 2016-01-29
     223
     224* Fix
     225    * Fixed a bug with permissions
     226
    221227= 1.0.2 =
    222228Release date: 2016-01-28
  • wp-log-viewer/trunk/wp-log-viewer.php

    r1338445 r1339039  
    1010 * Plugin URI:  https://github.com/allbitsnbytes/wp-log-viewer
    1111 * Description: Wordpress debug log viewer plugin
    12  * Version:     1.0.2
     12 * Version:     1.0.3
    1313 * Author:      Maxwell Berkel
    1414 * Author URI:  http://allbitsnbytes.com
Note: See TracChangeset for help on using the changeset viewer.