v1.4.0
This commit is contained in:
parent
916d7845be
commit
cc1bca74fa
29 changed files with 770 additions and 204 deletions
|
|
@ -5,8 +5,8 @@
|
|||
* Gitea Plugin URI: https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload
|
||||
* Primary Branch: main
|
||||
* Description: Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.
|
||||
* Version: 1.3.0
|
||||
* Requires at least: 4.1
|
||||
* Version: 1.4.0
|
||||
* Requires at least: 5.3
|
||||
* Requires PHP: 8.1
|
||||
* Author: ROBOTSTXT
|
||||
* Author URI: https://www.robotstxt.es/
|
||||
|
|
@ -36,7 +36,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
*
|
||||
* @since 1.1.4
|
||||
*/
|
||||
define( 'IDRIVEE2_MEDIA_VERSION', '1.3.0' );
|
||||
define( 'IDRIVEE2_MEDIA_VERSION', '1.4.0' );
|
||||
|
||||
/**
|
||||
* Load Composer autoloader if available.
|
||||
|
|
@ -62,6 +62,7 @@ require_once __DIR__ . '/includes/class-media-uploader.php';
|
|||
require_once __DIR__ . '/includes/class-admin-page.php';
|
||||
require_once __DIR__ . '/includes/class-subsize-filter.php';
|
||||
require_once __DIR__ . '/includes/class-plugin.php';
|
||||
require_once __DIR__ . '/includes/class-cli.php';
|
||||
|
||||
/**
|
||||
* Bootstrap the plugin.
|
||||
|
|
@ -70,6 +71,11 @@ require_once __DIR__ . '/includes/class-plugin.php';
|
|||
*/
|
||||
Plugin::get_instance( __FILE__ )->init();
|
||||
|
||||
// Initialize ROBOTSTXT updater (auto-configures from plugin headers).
|
||||
// Register WP-CLI commands when running under WP-CLI.
|
||||
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
||||
\WP_CLI::add_command( 'idrivee2', new CLI() );
|
||||
}
|
||||
|
||||
// Load the ROBOTSTXT auto-updater (external vendored library — see header in robotstxt-updater.php).
|
||||
require_once __DIR__ . '/robotstxt-updater.php';
|
||||
\Robotstxt_Updater::init( __FILE__ );
|
||||
|
|
|
|||
Loading…
Reference in a new issue