Skip to content

Commit

Permalink
Merge pull request #703 from Melapress/20240912-sync
Browse files Browse the repository at this point in the history
Sync from 2024-09-12
  • Loading branch information
sdobreff authored Sep 12, 2024
2 parents 5b27f7c + 6e3eb08 commit 39f1342
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 31 deletions.
4 changes: 1 addition & 3 deletions classes/WPSensors/class-wp-register-sensor.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ public static function event_user_register( $user_id ) {
);

if ( function_exists( 'get_current_user_id' ) ) {
if ( 0 !== $event_data['CurrentUserID'] ) {
$event_data['Username'] = 'System';
}
$event_data['Username'] = 'System';
}

if ( WP_Helper::is_multisite() ) {
Expand Down
24 changes: 13 additions & 11 deletions classes/WPSensors/class-wp-system-sensor.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,18 +387,20 @@ public static function removed_cron_job( $pre, $timestamp, $hook, $args, $wp_err

$cron = \wp_get_scheduled_event( $hook, $args, $timestamp );

if ( $cron->schedule ) {
$alert = 6072;
$data['schedule'] = $cron->schedule;
$schedule_info = \wp_get_schedules()[ $cron->schedule ];
$data['interval'] = $schedule_info['interval'];
$data['display_name'] = $schedule_info['display'];
}
if ( false !== $cron && \is_object( $cron ) ) {
if ( $cron->schedule ) {
$alert = 6072;
$data['schedule'] = $cron->schedule;
$schedule_info = \wp_get_schedules()[ $cron->schedule ];
$data['interval'] = $schedule_info['interval'];
$data['display_name'] = $schedule_info['display'];

Alert_Manager::trigger_event(
$alert,
$data
);
Alert_Manager::trigger_event(
$alert,
$data
);
}
}
}

return $pre;
Expand Down
2 changes: 1 addition & 1 deletion languages/wp-security-audit-log.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-09-12T14:15:56+00:00\n"
"POT-Creation-Date: 2024-09-12T16:15:34+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: wp-security-audit-log\n"
Expand Down
2 changes: 1 addition & 1 deletion third-party/vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit126815bf02b0568f7f0a6620724810aa::getLoader();
return ComposerAutoloaderInit2e0100f54e2fd661dad3032419558e16::getLoader();
8 changes: 4 additions & 4 deletions third-party/vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit126815bf02b0568f7f0a6620724810aa
class ComposerAutoloaderInit2e0100f54e2fd661dad3032419558e16
{
private static $loader;

Expand All @@ -22,12 +22,12 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit126815bf02b0568f7f0a6620724810aa', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit2e0100f54e2fd661dad3032419558e16', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit126815bf02b0568f7f0a6620724810aa', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit2e0100f54e2fd661dad3032419558e16', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit126815bf02b0568f7f0a6620724810aa::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit2e0100f54e2fd661dad3032419558e16::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);
Expand Down
4 changes: 2 additions & 2 deletions third-party/vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit126815bf02b0568f7f0a6620724810aa
class ComposerStaticInit2e0100f54e2fd661dad3032419558e16
{
public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
Expand All @@ -15,7 +15,7 @@ class ComposerStaticInit126815bf02b0568f7f0a6620724810aa
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->classMap = ComposerStaticInit126815bf02b0568f7f0a6620724810aa::$classMap;
$loader->classMap = ComposerStaticInit2e0100f54e2fd661dad3032419558e16::$classMap;

}, null, ClassLoader::class);
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit4672::getLoader();
return ComposerAutoloaderInit7342::getLoader();
8 changes: 4 additions & 4 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit4672
class ComposerAutoloaderInit7342
{
private static $loader;

Expand All @@ -22,12 +22,12 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit4672', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit7342', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit4672', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit7342', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit4672::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit7342::getInitializer($loader));

$loader->register(true);

Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit4672
class ComposerStaticInit7342
{
public static $prefixLengthsPsr4 = array (
'W' =>
Expand Down Expand Up @@ -153,9 +153,9 @@ class ComposerStaticInit4672
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit4672::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit4672::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit4672::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit7342::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7342::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7342::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit 39f1342

Please sign in to comment.