Plugin Directory

Changeset 1714918


Ignore:
Timestamp:
08/17/2017 10:16:21 PM (9 years ago)
Author:
glamdring
Message:

ignoring pruning event

Location:
wp-audit-log-logsentinel/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-audit-log-logsentinel/trunk/Loggers/LogSentinelLogger.php

    r1685839 r1714918  
    1111        // is this a php alert, and if so, are we logging such alerts?
    1212        if ($type < 0010 && !$this->plugin->settings->IsPhpErrorLoggingEnabled()) return;
    13         if ($type == 9999 || $type == 6007) return; // skip promo events and 404 warnings
     13        if ($type == 9999 || $type == 6007 || $type == 6000) return; // skip promo events, prune events and 404 warnings
    1414        $organizationId = trim(get_option("organization_id"));
    1515        if (!isset($organizationId) || $organizationId == "") return;
    1616       
     17        $username = $data['Username'];
     18       
    1719        $current_user = wp_get_current_user();
    18         if ($current_user->ID == 0) {
    19             $current_user = get_user_by('login', $data['Username']);
     20        if ($current_user->ID == 0 && isset($username)) {
     21            $current_user = get_user_by('login', $username);
    2022        }
    2123       
    22         $username = $data['Username'];
    2324        if (!$username) {
    2425            $username = $current_user->user_login;
     
    4950            $url = $root . '/api/log/' . $currentUserId . '/auth/LOGIN_FAILED' . $params;
    5051        } else if ($action == "Login_failed__/_non_existing_user") {
    51             $url = $root . '/api/log/' . $currentUserId . '/auth/LOGIN_FAILED' . $params . '&missingUser=true';
     52            $url = $root . '/api/log/unknown/auth/LOGIN_FAILED' . $params . '&missingUser=true';
    5253        }
    5354       
  • wp-audit-log-logsentinel/trunk/readme.txt

    r1685839 r1714918  
    55Tested up to: 4.7.2
    66Depends on : WP Security Audit Log
    7 Stable tag: 0.3
     7Stable tag: 0.4
    88
    99An Addon to WP Security Audit Log to store events in LogSentinel.com
  • wp-audit-log-logsentinel/trunk/wp-audit-log-logsentinel.php

    r1685839 r1714918  
    44  Plugin URI: https://github.com/logsentimel/wp-audit-log-logsentinel
    55  Description: An addon to WP Security Audit Log Plugin to store events in LogSentinel.com
    6   Version: 0.3
     6  Version: 0.4
    77  Author: Bozhdiar Bozhanov
    88  Author URI:
Note: See TracChangeset for help on using the changeset viewer.