This commit is contained in:
Javier Casares 2026-06-03 06:31:47 +00:00
commit 7b7fff5246
36 changed files with 610 additions and 31 deletions

View file

@ -7,6 +7,10 @@
namespace MediaRightsAudit\Core;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use MediaRightsAudit\Admin\Settings;
/**

View file

@ -7,6 +7,10 @@
namespace MediaRightsAudit\Core;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Manages all custom table creation and schema migrations.
*
@ -86,6 +90,8 @@ class Database {
$wpdb->query( "TRUNCATE TABLE `{$wpdb->prefix}mra_media_usage`" );
$wpdb->query( "TRUNCATE TABLE `{$wpdb->prefix}mra_media_index`" );
// phpcs:enable WordPress.DB.DirectDatabaseQuery
delete_transient( 'mra_alert_count' );
}
// -------------------------------------------------------------------------

View file

@ -7,6 +7,10 @@
namespace MediaRightsAudit\Core;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use MediaRightsAudit\Core\Queue\Scheduler;
/**

View file

@ -7,6 +7,10 @@
namespace MediaRightsAudit\Core;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use MediaRightsAudit\Admin\AlertsPage;
use MediaRightsAudit\Admin\AttachmentDetailPage;
use MediaRightsAudit\Admin\AuditPage;

View file

@ -7,6 +7,10 @@
namespace MediaRightsAudit\Core\Queue;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Thin wrapper around Action Scheduler that namespaces all jobs under a single group.
*