This commit is contained in:
2026-10-06 18:51:23 -06:00
parent 8424dacd03
commit e2c26b7f21
4223 changed files with 737986 additions and 53 deletions
@@ -0,0 +1,27 @@
<?php
/*
* Plugin name: Disable Media Pages
* Description: Plugin to disable "attachment" pages for WordPress media.
* Author: Johannes Siipola
* Author URI: https://siipo.la
* Version: 4.0.3
* License: GPL v2 or later
* Text Domain: disable-media-pages
*/
require __DIR__ . '/vendor/autoload.php';
// Load c3 in CI environment for code coverage. Codeception requests this file directly to collect the coverage
// report, so this has to run before the ABSPATH check below.
if (file_exists(__DIR__ . '/c3.php')) {
require_once __DIR__ . '/c3.php';
}
// Prevent direct access to this file outside of WordPress.
if (!defined('ABSPATH')) {
exit;
}
\NPX\DisableMediaPages\Plugin::get_instance();