v1.4.2
This commit is contained in:
parent
6a8de6e2e2
commit
a80a4aa4f9
8168 changed files with 3186001 additions and 9155 deletions
|
|
@ -1,5 +1,39 @@
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.4.2 =
|
||||||
|
|
||||||
|
_Release date: 2026-08-17_
|
||||||
|
|
||||||
|
**Added**
|
||||||
|
|
||||||
|
* Dismissible admin notice on the Plugins page when the ROBOTSTXT Manager plugin is not installed or active, linking to https://www.robotstxt.software/plugins/robotstxt-manager/ — updates are delivered through ROBOTSTXT Manager
|
||||||
|
* Persistent (non-dismissible) notice on Settings → iDrivee2 under the same condition
|
||||||
|
|
||||||
|
**Changed**
|
||||||
|
|
||||||
|
* Removed the bundled Gitea auto-updater (`robotstxt-updater.php` and `update.json`); automatic updates are now handled by the ROBOTSTXT Manager plugin
|
||||||
|
* Plugin URI and new `Update URI` header point to https://www.robotstxt.software/plugins/idrivee2-media-upload/
|
||||||
|
* Author URI updated to https://www.robotstxt.software/
|
||||||
|
* Composer dependencies updated: `aws/aws-sdk-php` 3.383.2 → 3.392.3, `guzzlehttp/guzzle` 7.x → 8.0.2, WPCS 3.3.0 → 3.4.1, PHPStan 2.2.1 → 2.2.8 (no known CVEs)
|
||||||
|
|
||||||
|
**Localization**
|
||||||
|
|
||||||
|
* POT regenerated for 1.4.2 — includes the WP-CLI and data-cleanup strings that were missing since 1.4.0, and drops the removed updater strings
|
||||||
|
* Spanish (es_ES) and Catalan (ca) translations updated: 69/69 strings translated in both locales
|
||||||
|
|
||||||
|
**Compatibility**
|
||||||
|
|
||||||
|
* WordPress: 5.3 - 7.1 (floor verified with wp-compat: `big_image_size_threshold` filter, WP 5.3)
|
||||||
|
* PHP: 8.1 - 8.5 (full-range PHPCompatibility scan 5.6-8.5; floor set by `aws/aws-sdk-php` requiring >= 8.1)
|
||||||
|
|
||||||
|
**Tests**
|
||||||
|
|
||||||
|
* PHP Coding Standards: 3.13.6 (0 errors)
|
||||||
|
* WordPress Coding Standards: 3.4.1 (0 violations)
|
||||||
|
* PHPStan: Level 9, 0 errors
|
||||||
|
* PHPUnit: 78 tests, 125 assertions
|
||||||
|
* composer audit: no known CVEs
|
||||||
|
|
||||||
= 1.4.1 =
|
= 1.4.1 =
|
||||||
|
|
||||||
_Release date: 2026-08-10_
|
_Release date: 2026-08-10_
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Plugin Name: iDrivee2 Media Upload
|
* Plugin Name: iDrivee2 Media Upload
|
||||||
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload
|
* Plugin URI: https://www.robotstxt.software/plugins/idrivee2-media-upload/
|
||||||
* Gitea Plugin URI: https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload
|
* Update URI: https://www.robotstxt.software/plugins/idrivee2-media-upload/
|
||||||
* Primary Branch: main
|
|
||||||
* Description: Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.
|
* Description: Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.
|
||||||
* Version: 1.4.1
|
* Version: 1.4.2
|
||||||
* Requires at least: 5.3
|
* Requires at least: 5.3
|
||||||
* Requires PHP: 8.1
|
* Requires PHP: 8.1
|
||||||
* Author: ROBOTSTXT
|
* Author: ROBOTSTXT
|
||||||
* Author URI: https://www.robotstxt.es/
|
* Author URI: https://www.robotstxt.software/
|
||||||
* License: GPL-3.0-or-later
|
* License: GPL-3.0-or-later
|
||||||
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
* Text Domain: idrivee2-media-upload
|
* Text Domain: idrivee2-media-upload
|
||||||
|
|
@ -36,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
*
|
*
|
||||||
* @since 1.1.4
|
* @since 1.1.4
|
||||||
*/
|
*/
|
||||||
define( 'IDRIVEE2_MEDIA_VERSION', '1.4.1' );
|
define( 'IDRIVEE2_MEDIA_VERSION', '1.4.2' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Composer autoloader if available.
|
* Load Composer autoloader if available.
|
||||||
|
|
@ -61,6 +60,7 @@ require_once __DIR__ . '/includes/class-url-rewriter.php';
|
||||||
require_once __DIR__ . '/includes/class-media-uploader.php';
|
require_once __DIR__ . '/includes/class-media-uploader.php';
|
||||||
require_once __DIR__ . '/includes/class-admin-page.php';
|
require_once __DIR__ . '/includes/class-admin-page.php';
|
||||||
require_once __DIR__ . '/includes/class-subsize-filter.php';
|
require_once __DIR__ . '/includes/class-subsize-filter.php';
|
||||||
|
require_once __DIR__ . '/includes/class-manager-dependency.php';
|
||||||
require_once __DIR__ . '/includes/class-plugin.php';
|
require_once __DIR__ . '/includes/class-plugin.php';
|
||||||
require_once __DIR__ . '/includes/class-cli.php';
|
require_once __DIR__ . '/includes/class-cli.php';
|
||||||
|
|
||||||
|
|
@ -75,7 +75,3 @@ Plugin::get_instance( __FILE__ )->init();
|
||||||
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
||||||
\WP_CLI::add_command( 'idrivee2', new 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__ );
|
|
||||||
|
|
|
||||||
|
|
@ -601,6 +601,8 @@ class Admin_Page {
|
||||||
|
|
||||||
<?php settings_errors(); ?>
|
<?php settings_errors(); ?>
|
||||||
|
|
||||||
|
<?php Manager_Dependency::render_settings_notice(); ?>
|
||||||
|
|
||||||
<?php if ( $any_in_config ) : ?>
|
<?php if ( $any_in_config ) : ?>
|
||||||
<div class="notice notice-info">
|
<div class="notice notice-info">
|
||||||
<p><?php esc_html_e( 'Some settings are defined in wp-config.php and cannot be changed here. These fields are shown as read-only.', 'idrivee2-media-upload' ); ?></p>
|
<p><?php esc_html_e( 'Some settings are defined in wp-config.php and cannot be changed here. These fields are shown as read-only.', 'idrivee2-media-upload' ); ?></p>
|
||||||
|
|
|
||||||
148
includes/class-manager-dependency.php
Normal file
148
includes/class-manager-dependency.php
Normal file
|
|
@ -0,0 +1,148 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* ROBOTSTXT Manager dependency notice for iDrivee2 Media Upload.
|
||||||
|
*
|
||||||
|
* @package iDrivee2Media
|
||||||
|
* @since 1.4.2
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
namespace iDrivee2Media;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent direct access to this file.
|
||||||
|
*/
|
||||||
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks for the ROBOTSTXT Manager plugin and warns when it is missing.
|
||||||
|
*
|
||||||
|
* Plugin updates are served through ROBOTSTXT Manager (Manager by ROBOTSTXT).
|
||||||
|
* When it is not installed and active, a dismissible notice is shown on the
|
||||||
|
* plugins list page and a persistent notice is shown on the plugin settings
|
||||||
|
* page, so administrators know updates will not be delivered.
|
||||||
|
*
|
||||||
|
* @since 1.4.2
|
||||||
|
*/
|
||||||
|
class Manager_Dependency {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ROBOTSTXT Manager plugin page URL.
|
||||||
|
*
|
||||||
|
* @since 1.4.2
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private const MANAGER_PLUGIN_URL = 'https://www.robotstxt.software/plugins/robotstxt-manager/';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register hooks for the admin notices.
|
||||||
|
*
|
||||||
|
* @since 1.4.2
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function register(): void {
|
||||||
|
add_action( 'admin_notices', array( $this, 'render_plugins_page_notice' ) );
|
||||||
|
add_action( 'network_admin_notices', array( $this, 'render_plugins_page_notice' ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the ROBOTSTXT Manager plugin is installed and active.
|
||||||
|
*
|
||||||
|
* Matches any active plugin whose directory slug is "robotstxt-manager",
|
||||||
|
* so the main file name does not matter. On Multisite, network-activated
|
||||||
|
* plugins are matched as well.
|
||||||
|
*
|
||||||
|
* @since 1.4.2
|
||||||
|
*
|
||||||
|
* @return bool True when ROBOTSTXT Manager is active.
|
||||||
|
*/
|
||||||
|
public static function is_manager_active(): bool {
|
||||||
|
$active = get_option( 'active_plugins', array() );
|
||||||
|
if ( is_array( $active ) ) {
|
||||||
|
foreach ( $active as $basename ) {
|
||||||
|
if ( is_string( $basename ) && str_starts_with( $basename, 'robotstxt-manager/' ) ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( is_multisite() ) {
|
||||||
|
$network_active = get_site_option( 'active_sitewide_plugins', array() );
|
||||||
|
if ( is_array( $network_active ) ) {
|
||||||
|
foreach ( array_keys( $network_active ) as $basename ) {
|
||||||
|
if ( is_string( $basename ) && str_starts_with( $basename, 'robotstxt-manager/' ) ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render the dismissible notice on the plugins list page.
|
||||||
|
*
|
||||||
|
* @since 1.4.2
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function render_plugins_page_notice(): void {
|
||||||
|
global $pagenow;
|
||||||
|
|
||||||
|
$current_page = isset( $pagenow ) && is_string( $pagenow ) ? $pagenow : '';
|
||||||
|
if ( 'plugins.php' !== $current_page ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! current_user_can( 'manage_options' ) ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( self::is_manager_active() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
printf(
|
||||||
|
'<div class="notice notice-warning is-dismissible"><p>%s</p></div>',
|
||||||
|
wp_kses_post( self::message_html() )
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render the persistent notice for the plugin settings page.
|
||||||
|
*
|
||||||
|
* @since 1.4.2
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public static function render_settings_notice(): void {
|
||||||
|
if ( self::is_manager_active() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
printf(
|
||||||
|
'<div class="notice notice-warning"><p>%s</p></div>',
|
||||||
|
wp_kses_post( self::message_html() )
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the shared warning message HTML.
|
||||||
|
*
|
||||||
|
* @since 1.4.2
|
||||||
|
*
|
||||||
|
* @return string Message HTML with an escaped link.
|
||||||
|
*/
|
||||||
|
private static function message_html(): string {
|
||||||
|
return sprintf(
|
||||||
|
/* translators: %s: link to the ROBOTSTXT Manager plugin page. */
|
||||||
|
esc_html__( 'To receive plugin updates, the ROBOTSTXT Manager plugin must be installed and active. Download it from %s.', 'idrivee2-media-upload' ),
|
||||||
|
'<a href="' . esc_url( self::MANAGER_PLUGIN_URL ) . '">ROBOTSTXT Manager</a>'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -88,6 +88,13 @@ class Plugin {
|
||||||
*/
|
*/
|
||||||
private $subsize_filter;
|
private $subsize_filter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ROBOTSTXT Manager dependency notices.
|
||||||
|
*
|
||||||
|
* @var Manager_Dependency
|
||||||
|
*/
|
||||||
|
private $manager_dependency;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plugin file path.
|
* Plugin file path.
|
||||||
*
|
*
|
||||||
|
|
@ -118,6 +125,7 @@ class Plugin {
|
||||||
$this->media_uploader = new Media_Uploader( $this->config, $this->client_factory, $this->logger );
|
$this->media_uploader = new Media_Uploader( $this->config, $this->client_factory, $this->logger );
|
||||||
$this->url_rewriter = new URL_Rewriter( $this->config );
|
$this->url_rewriter = new URL_Rewriter( $this->config );
|
||||||
$this->subsize_filter = new Subsize_Filter( $this->config );
|
$this->subsize_filter = new Subsize_Filter( $this->config );
|
||||||
|
$this->manager_dependency = new Manager_Dependency();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -154,6 +162,7 @@ class Plugin {
|
||||||
$this->media_uploader->register();
|
$this->media_uploader->register();
|
||||||
$this->url_rewriter->register();
|
$this->url_rewriter->register();
|
||||||
$this->subsize_filter->register();
|
$this->subsize_filter->register();
|
||||||
|
$this->manager_dependency->register();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,13 +1,13 @@
|
||||||
# Translation of iDrivee2 Media Upload 1.3.0 in Catalan.
|
# Translation of iDrivee2 Media Upload 1.4.2 in Catalan.
|
||||||
# Copyright (C) 2026 ROBOTSTXT
|
# Copyright (C) 2026 ROBOTSTXT
|
||||||
# This file is distributed under the GPL-3.0-or-later license.
|
# This file is distributed under the GPL-3.0-or-later license.
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: iDrivee2 Media Upload 1.3.0\n"
|
"Project-Id-Version: iDrivee2 Media Upload 1.4.2\n"
|
||||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idrivee2-media-upload\n"
|
"Report-Msgid-Bugs-To: https://www.robotstxt.software/plugins/idrivee2-media-upload/\n"
|
||||||
"POT-Creation-Date: 2026-07-18T13:20:23+00:00\n"
|
"POT-Creation-Date: 2026-08-17T14:40:00+00:00\n"
|
||||||
"PO-Revision-Date: 2026-07-18T13:30:00+00:00\n"
|
"PO-Revision-Date: 2026-08-17T14:45:00+00:00\n"
|
||||||
"Last-Translator: ROBOTSTXT <hola@robotstxt.es>\n"
|
"Last-Translator: ROBOTSTXT <hola@robotstxt.es>\n"
|
||||||
"Language-Team: Català <ca@li.org>\n"
|
"Language-Team: Català <ca@li.org>\n"
|
||||||
"Language: ca\n"
|
"Language: ca\n"
|
||||||
|
|
@ -15,7 +15,7 @@ msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: WP-CLI 2.12.0\n"
|
"X-Generator: gettext 0.22\n"
|
||||||
"X-Domain: idrivee2-media-upload\n"
|
"X-Domain: idrivee2-media-upload\n"
|
||||||
|
|
||||||
#. Plugin Name of the plugin
|
#. Plugin Name of the plugin
|
||||||
|
|
@ -23,8 +23,8 @@ msgid "iDrivee2 Media Upload"
|
||||||
msgstr "iDrivee2 Media Upload"
|
msgstr "iDrivee2 Media Upload"
|
||||||
|
|
||||||
#. Plugin URI of the plugin
|
#. Plugin URI of the plugin
|
||||||
msgid "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
msgid "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||||
msgstr "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
msgstr "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||||
|
|
||||||
#. Description of the plugin
|
#. Description of the plugin
|
||||||
msgid ""
|
msgid ""
|
||||||
|
|
@ -39,12 +39,12 @@ msgid "ROBOTSTXT"
|
||||||
msgstr "ROBOTSTXT"
|
msgstr "ROBOTSTXT"
|
||||||
|
|
||||||
#. Author URI of the plugin
|
#. Author URI of the plugin
|
||||||
msgid "https://www.robotstxt.es/"
|
msgid "https://www.robotstxt.software/"
|
||||||
msgstr "https://www.robotstxt.es/"
|
msgstr "https://www.robotstxt.software/"
|
||||||
|
|
||||||
#. translators: Admin menu title.
|
#. translators: Admin menu title.
|
||||||
msgid "iDrivee2 Media Upload Settings"
|
msgid "iDrivee2 Media Upload Settings"
|
||||||
msgstr "Ajusts d'iDrivee2 Media Upload"
|
msgstr "Ajustos d'iDrivee2 Media Upload"
|
||||||
|
|
||||||
#. translators: Admin menu label.
|
#. translators: Admin menu label.
|
||||||
msgid "iDrivee2"
|
msgid "iDrivee2"
|
||||||
|
|
@ -59,7 +59,7 @@ msgid "Please wait %d seconds before testing again."
|
||||||
msgstr "Espereu %d segons abans de tornar a provar-ho."
|
msgstr "Espereu %d segons abans de tornar a provar-ho."
|
||||||
|
|
||||||
msgid "Configuration is incomplete. Please check your settings."
|
msgid "Configuration is incomplete. Please check your settings."
|
||||||
msgstr "La configuració és incompleta. Comproveu els ajusts."
|
msgstr "La configuració és incompleta. Comproveu els ajustos."
|
||||||
|
|
||||||
msgid "Connection successful! Your S3 configuration is working correctly."
|
msgid "Connection successful! Your S3 configuration is working correctly."
|
||||||
msgstr "S'ha connectat correctament! La configuració S3 funciona correctament."
|
msgstr "S'ha connectat correctament! La configuració S3 funciona correctament."
|
||||||
|
|
@ -100,7 +100,7 @@ msgid ""
|
||||||
"Some settings are defined in wp-config.php and cannot be changed here. "
|
"Some settings are defined in wp-config.php and cannot be changed here. "
|
||||||
"These fields are shown as read-only."
|
"These fields are shown as read-only."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Alguns ajusts estan definits a wp-config.php i no es poden canviar aquí. "
|
"Alguns ajustos estan definits a wp-config.php i no es poden canviar aquí. "
|
||||||
"Aquests camps es mostren com a només de lectura."
|
"Aquests camps es mostren com a només de lectura."
|
||||||
|
|
||||||
msgid "S3 Host"
|
msgid "S3 Host"
|
||||||
|
|
@ -179,16 +179,30 @@ msgstr ""
|
||||||
"Redueix la feina per a pujades grans (per exemple, fitxers de càmera). "
|
"Redueix la feina per a pujades grans (per exemple, fitxers de càmera). "
|
||||||
"També desactiva la derivada -scaled en els modes miniatura i cap."
|
"També desactiva la derivada -scaled en els modes miniatura i cap."
|
||||||
|
|
||||||
msgid "Save Settings"
|
msgid "Data Cleanup"
|
||||||
msgstr "Desa els ajusts"
|
msgstr "Neteja de dades"
|
||||||
|
|
||||||
|
msgid "Delete all plugin data when the plugin is uninstalled"
|
||||||
|
msgstr "Elimina totes les dades del plugin en desinstal·lar-lo"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"By default, all data is preserved when the plugin is uninstalled. Check "
|
||||||
|
"this to remove settings, statistics, and post meta on uninstall."
|
||||||
|
msgstr ""
|
||||||
|
"Per defecte, es conserven totes les dades quan es desinstal·la el plugin. "
|
||||||
|
"Marqueu aquesta casella per a eliminar els ajustos, les estadístiques i "
|
||||||
|
"les metadades en desinstal·lar."
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"To modify settings defined in wp-config.php, please edit your wp-config.php "
|
"To modify settings defined in wp-config.php, please edit your wp-config.php "
|
||||||
"file directly."
|
"file directly."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Per a modificar els ajusts definits a wp-config.php, editeu directament "
|
"Per a modificar els ajustos definits a wp-config.php, editeu directament "
|
||||||
"el fitxer wp-config.php."
|
"el fitxer wp-config.php."
|
||||||
|
|
||||||
|
msgid "Save Settings"
|
||||||
|
msgstr "Desa els ajustos"
|
||||||
|
|
||||||
msgid "Test Connection"
|
msgid "Test Connection"
|
||||||
msgstr "Prova la connexió"
|
msgstr "Prova la connexió"
|
||||||
|
|
||||||
|
|
@ -223,8 +237,53 @@ msgstr ""
|
||||||
"(test-YYYYMMDDHHMMSS.txt). El fitxer romandrà a S3 fins que s'elimini "
|
"(test-YYYYMMDDHHMMSS.txt). El fitxer romandrà a S3 fins que s'elimini "
|
||||||
"manualment."
|
"manualment."
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Plugin is not configured. Set S3 credentials in wp-config.php or Settings → "
|
||||||
|
"iDrivee2."
|
||||||
|
msgstr ""
|
||||||
|
"El plugin no està configurat. Definiu les credencials S3 a wp-config.php o "
|
||||||
|
"a Ajustos → iDrivee2."
|
||||||
|
|
||||||
|
msgid "Testing connection to bucket:"
|
||||||
|
msgstr "S'està provant la connexió amb el dipòsit:"
|
||||||
|
|
||||||
|
msgid "Connection successful — bucket is accessible."
|
||||||
|
msgstr "S'ha connectat correctament: el dipòsit és accessible."
|
||||||
|
|
||||||
|
msgid "AWS error:"
|
||||||
|
msgstr "Error d'AWS:"
|
||||||
|
|
||||||
|
msgid "Connection failed:"
|
||||||
|
msgstr "La connexió ha fallat:"
|
||||||
|
|
||||||
|
#. translators: 1: number of files deleted, 2: number remaining in queue.
|
||||||
|
#, php-format
|
||||||
|
msgid "Cleanup complete: %1$d file deleted, %2$d remaining."
|
||||||
|
msgid_plural "Cleanup complete: %1$d files deleted, %2$d remaining."
|
||||||
|
msgstr[0] "Neteja completada: s'ha eliminat %1$d fitxer, en queden %2$d."
|
||||||
|
msgstr[1] "Neteja completada: s'han eliminat %1$d fitxers, en queden %2$d."
|
||||||
|
|
||||||
|
#. translators: %d: number of files remaining in queue.
|
||||||
|
#, php-format
|
||||||
|
msgid "Cleanup complete: no files to delete, %d remaining in queue."
|
||||||
|
msgstr "Neteja completada: no hi ha fitxers per a eliminar, en queden %d a la cua."
|
||||||
|
|
||||||
|
msgid "No S3 operations recorded."
|
||||||
|
msgstr "No hi ha operacions de S3 registrades."
|
||||||
|
|
||||||
|
#. translators: %d: number of days.
|
||||||
|
#, php-format
|
||||||
|
msgid "S3 operations (last %d days):"
|
||||||
|
msgstr "Operacions de S3 (últims %d dies):"
|
||||||
|
|
||||||
|
#. translators: %s: link to the ROBOTSTXT Manager plugin page.
|
||||||
|
#, php-format
|
||||||
|
msgid ""
|
||||||
|
"To receive plugin updates, the ROBOTSTXT Manager plugin must be installed "
|
||||||
|
"and active. Download it from %s."
|
||||||
|
msgstr ""
|
||||||
|
"Per a rebre actualitzacions del plugin, el plugin ROBOTSTXT Manager ha "
|
||||||
|
"d'estar instal·lat i actiu. Baixeu-lo des de %s."
|
||||||
|
|
||||||
msgid "Every 5 Minutes"
|
msgid "Every 5 Minutes"
|
||||||
msgstr "Cada 5 minuts"
|
msgstr "Cada 5 minuts"
|
||||||
|
|
||||||
msgid "Security check failed"
|
|
||||||
msgstr "Ha fallat la comprovació de seguretat"
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,13 +1,13 @@
|
||||||
# Translation of iDrivee2 Media Upload 1.3.0 in Spanish (Spain).
|
# Translation of iDrivee2 Media Upload 1.4.2 in Spanish (Spain).
|
||||||
# Copyright (C) 2026 ROBOTSTXT
|
# Copyright (C) 2026 ROBOTSTXT
|
||||||
# This file is distributed under the GPL-3.0-or-later license.
|
# This file is distributed under the GPL-3.0-or-later license.
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: iDrivee2 Media Upload 1.3.0\n"
|
"Project-Id-Version: iDrivee2 Media Upload 1.4.2\n"
|
||||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idrivee2-media-upload\n"
|
"Report-Msgid-Bugs-To: https://www.robotstxt.software/plugins/idrivee2-media-upload/\n"
|
||||||
"POT-Creation-Date: 2026-07-18T13:20:23+00:00\n"
|
"POT-Creation-Date: 2026-08-17T14:40:00+00:00\n"
|
||||||
"PO-Revision-Date: 2026-07-18T13:30:00+00:00\n"
|
"PO-Revision-Date: 2026-08-17T14:45:00+00:00\n"
|
||||||
"Last-Translator: ROBOTSTXT <hola@robotstxt.es>\n"
|
"Last-Translator: ROBOTSTXT <hola@robotstxt.es>\n"
|
||||||
"Language-Team: Español (España) <es@li.org>\n"
|
"Language-Team: Español (España) <es@li.org>\n"
|
||||||
"Language: es_ES\n"
|
"Language: es_ES\n"
|
||||||
|
|
@ -15,7 +15,7 @@ msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: WP-CLI 2.12.0\n"
|
"X-Generator: gettext 0.22\n"
|
||||||
"X-Domain: idrivee2-media-upload\n"
|
"X-Domain: idrivee2-media-upload\n"
|
||||||
|
|
||||||
#. Plugin Name of the plugin
|
#. Plugin Name of the plugin
|
||||||
|
|
@ -23,8 +23,8 @@ msgid "iDrivee2 Media Upload"
|
||||||
msgstr "iDrivee2 Media Upload"
|
msgstr "iDrivee2 Media Upload"
|
||||||
|
|
||||||
#. Plugin URI of the plugin
|
#. Plugin URI of the plugin
|
||||||
msgid "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
msgid "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||||
msgstr "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
msgstr "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||||
|
|
||||||
#. Description of the plugin
|
#. Description of the plugin
|
||||||
msgid ""
|
msgid ""
|
||||||
|
|
@ -39,8 +39,8 @@ msgid "ROBOTSTXT"
|
||||||
msgstr "ROBOTSTXT"
|
msgstr "ROBOTSTXT"
|
||||||
|
|
||||||
#. Author URI of the plugin
|
#. Author URI of the plugin
|
||||||
msgid "https://www.robotstxt.es/"
|
msgid "https://www.robotstxt.software/"
|
||||||
msgstr "https://www.robotstxt.es/"
|
msgstr "https://www.robotstxt.software/"
|
||||||
|
|
||||||
#. translators: Admin menu title.
|
#. translators: Admin menu title.
|
||||||
msgid "iDrivee2 Media Upload Settings"
|
msgid "iDrivee2 Media Upload Settings"
|
||||||
|
|
@ -179,8 +179,19 @@ msgstr ""
|
||||||
"Reduce el trabajo en subidas grandes (por ejemplo, archivos de cámara). "
|
"Reduce el trabajo en subidas grandes (por ejemplo, archivos de cámara). "
|
||||||
"También desactiva la derivada -scaled en los modos miniatura y ninguno."
|
"También desactiva la derivada -scaled en los modos miniatura y ninguno."
|
||||||
|
|
||||||
msgid "Save Settings"
|
msgid "Data Cleanup"
|
||||||
msgstr "Guardar ajustes"
|
msgstr "Limpieza de datos"
|
||||||
|
|
||||||
|
msgid "Delete all plugin data when the plugin is uninstalled"
|
||||||
|
msgstr "Eliminar todos los datos del plugin al desinstalarlo"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"By default, all data is preserved when the plugin is uninstalled. Check "
|
||||||
|
"this to remove settings, statistics, and post meta on uninstall."
|
||||||
|
msgstr ""
|
||||||
|
"Por defecto, se conservan todos los datos cuando se desinstala el plugin. "
|
||||||
|
"Marca esta casilla para eliminar los ajustes, las estadísticas y los "
|
||||||
|
"metadatos al desinstalar."
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"To modify settings defined in wp-config.php, please edit your wp-config.php "
|
"To modify settings defined in wp-config.php, please edit your wp-config.php "
|
||||||
|
|
@ -189,6 +200,9 @@ msgstr ""
|
||||||
"Para modificar los ajustes definidos en wp-config.php, edita el archivo "
|
"Para modificar los ajustes definidos en wp-config.php, edita el archivo "
|
||||||
"wp-config.php directamente."
|
"wp-config.php directamente."
|
||||||
|
|
||||||
|
msgid "Save Settings"
|
||||||
|
msgstr "Guardar ajustes"
|
||||||
|
|
||||||
msgid "Test Connection"
|
msgid "Test Connection"
|
||||||
msgstr "Probar conexión"
|
msgstr "Probar conexión"
|
||||||
|
|
||||||
|
|
@ -223,8 +237,53 @@ msgstr ""
|
||||||
"(test-YYYYMMDDHHMMSS.txt). El archivo permanecerá en S3 hasta que se "
|
"(test-YYYYMMDDHHMMSS.txt). El archivo permanecerá en S3 hasta que se "
|
||||||
"elimine manualmente."
|
"elimine manualmente."
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Plugin is not configured. Set S3 credentials in wp-config.php or Settings → "
|
||||||
|
"iDrivee2."
|
||||||
|
msgstr ""
|
||||||
|
"El plugin no está configurado. Define las credenciales S3 en wp-config.php "
|
||||||
|
"o en Ajustes → iDrivee2."
|
||||||
|
|
||||||
|
msgid "Testing connection to bucket:"
|
||||||
|
msgstr "Probando la conexión con el depósito:"
|
||||||
|
|
||||||
|
msgid "Connection successful — bucket is accessible."
|
||||||
|
msgstr "Conexión correcta: se puede acceder al depósito."
|
||||||
|
|
||||||
|
msgid "AWS error:"
|
||||||
|
msgstr "Error de AWS:"
|
||||||
|
|
||||||
|
msgid "Connection failed:"
|
||||||
|
msgstr "La conexión ha fallado:"
|
||||||
|
|
||||||
|
#. translators: 1: number of files deleted, 2: number remaining in queue.
|
||||||
|
#, php-format
|
||||||
|
msgid "Cleanup complete: %1$d file deleted, %2$d remaining."
|
||||||
|
msgid_plural "Cleanup complete: %1$d files deleted, %2$d remaining."
|
||||||
|
msgstr[0] "Limpieza completada: %1$d archivo eliminado, quedan %2$d."
|
||||||
|
msgstr[1] "Limpieza completada: %1$d archivos eliminados, quedan %2$d."
|
||||||
|
|
||||||
|
#. translators: %d: number of files remaining in queue.
|
||||||
|
#, php-format
|
||||||
|
msgid "Cleanup complete: no files to delete, %d remaining in queue."
|
||||||
|
msgstr "Limpieza completada: no hay archivos que eliminar, quedan %d en la cola."
|
||||||
|
|
||||||
|
msgid "No S3 operations recorded."
|
||||||
|
msgstr "No hay operaciones de S3 registradas."
|
||||||
|
|
||||||
|
#. translators: %d: number of days.
|
||||||
|
#, php-format
|
||||||
|
msgid "S3 operations (last %d days):"
|
||||||
|
msgstr "Operaciones de S3 (últimos %d días):"
|
||||||
|
|
||||||
|
#. translators: %s: link to the ROBOTSTXT Manager plugin page.
|
||||||
|
#, php-format
|
||||||
|
msgid ""
|
||||||
|
"To receive plugin updates, the ROBOTSTXT Manager plugin must be installed "
|
||||||
|
"and active. Download it from %s."
|
||||||
|
msgstr ""
|
||||||
|
"Para recibir actualizaciones del plugin, el plugin ROBOTSTXT Manager debe "
|
||||||
|
"estar instalado y activo. Descárgalo desde %s."
|
||||||
|
|
||||||
msgid "Every 5 Minutes"
|
msgid "Every 5 Minutes"
|
||||||
msgstr "Cada 5 minutos"
|
msgstr "Cada 5 minutos"
|
||||||
|
|
||||||
msgid "Security check failed"
|
|
||||||
msgstr "Ha fallado la comprobación de seguridad"
|
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
# This file is distributed under the GPL-3.0-or-later.
|
# This file is distributed under the GPL-3.0-or-later.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: iDrivee2 Media Upload 1.3.0\n"
|
"Project-Id-Version: iDrivee2 Media Upload 1.4.2\n"
|
||||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idrivee2-media-upload\n"
|
"Report-Msgid-Bugs-To: https://www.robotstxt.software/plugins/idrivee2-media-upload/\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"POT-Creation-Date: 2026-07-18T13:20:23+00:00\n"
|
"POT-Creation-Date: 2026-08-17T14:40:00+00:00\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"X-Generator: WP-CLI 2.12.0\n"
|
"X-Generator: gettext 0.22\n"
|
||||||
"X-Domain: idrivee2-media-upload\n"
|
"X-Domain: idrivee2-media-upload\n"
|
||||||
|
|
||||||
#. Plugin Name of the plugin
|
#. Plugin Name of the plugin
|
||||||
|
|
@ -21,7 +21,7 @@ msgstr ""
|
||||||
|
|
||||||
#. Plugin URI of the plugin
|
#. Plugin URI of the plugin
|
||||||
#: idrivee2-media-upload.php
|
#: idrivee2-media-upload.php
|
||||||
msgid "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
msgid "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Description of the plugin
|
#. Description of the plugin
|
||||||
|
|
@ -36,12 +36,12 @@ msgstr ""
|
||||||
|
|
||||||
#. Author URI of the plugin
|
#. Author URI of the plugin
|
||||||
#: idrivee2-media-upload.php
|
#: idrivee2-media-upload.php
|
||||||
msgid "https://www.robotstxt.es/"
|
msgid "https://www.robotstxt.software/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: Admin menu title.
|
#. translators: Admin menu title.
|
||||||
#: includes/class-admin-page.php:109
|
#: includes/class-admin-page.php:109
|
||||||
#: includes/class-admin-page.php:595
|
#: includes/class-admin-page.php:600
|
||||||
msgid "iDrivee2 Media Upload Settings"
|
msgid "iDrivee2 Media Upload Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -53,7 +53,6 @@ msgstr ""
|
||||||
#: includes/class-admin-page.php:156
|
#: includes/class-admin-page.php:156
|
||||||
#: includes/class-admin-page.php:168
|
#: includes/class-admin-page.php:168
|
||||||
#: includes/class-admin-page.php:180
|
#: includes/class-admin-page.php:180
|
||||||
#: robotstxt-updater.php:394
|
|
||||||
msgid "You do not have sufficient permissions to access this page."
|
msgid "You do not have sufficient permissions to access this page."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -73,22 +72,22 @@ msgstr ""
|
||||||
|
|
||||||
#. translators: %s is the error message from AWS.
|
#. translators: %s is the error message from AWS.
|
||||||
#: includes/class-admin-page.php:256
|
#: includes/class-admin-page.php:256
|
||||||
#: includes/class-admin-page.php:361
|
#: includes/class-admin-page.php:362
|
||||||
#: includes/class-admin-page.php:471
|
#: includes/class-admin-page.php:472
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "AWS Error: %s"
|
msgid "AWS Error: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:257
|
#: includes/class-admin-page.php:257
|
||||||
#: includes/class-admin-page.php:362
|
#: includes/class-admin-page.php:363
|
||||||
#: includes/class-admin-page.php:472
|
#: includes/class-admin-page.php:473
|
||||||
msgid "Unknown error"
|
msgid "Unknown error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: %s is the error message.
|
#. translators: %s is the error message.
|
||||||
#: includes/class-admin-page.php:271
|
#: includes/class-admin-page.php:271
|
||||||
#: includes/class-admin-page.php:376
|
#: includes/class-admin-page.php:377
|
||||||
#: includes/class-admin-page.php:486
|
#: includes/class-admin-page.php:487
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Error: %s"
|
msgid "Error: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -99,177 +98,234 @@ msgstr ""
|
||||||
msgid "Please wait %d seconds before uploading again."
|
msgid "Please wait %d seconds before uploading again."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:345
|
#: includes/class-admin-page.php:346
|
||||||
msgid "File uploaded successfully!"
|
msgid "File uploaded successfully!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:426
|
#: includes/class-admin-page.php:427
|
||||||
msgid "Invalid test file name format."
|
msgid "Invalid test file name format."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: %s is the file name.
|
#. translators: %s is the file name.
|
||||||
#: includes/class-admin-page.php:455
|
#: includes/class-admin-page.php:456
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "File %s deleted successfully."
|
msgid "File %s deleted successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:517
|
#: includes/class-admin-page.php:518
|
||||||
msgid "Host URL must start with \"https://\"."
|
msgid "Host URL must start with \"https://\"."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:601
|
#: includes/class-admin-page.php:608
|
||||||
msgid "Some settings are defined in wp-config.php and cannot be changed here. These fields are shown as read-only."
|
msgid "Some settings are defined in wp-config.php and cannot be changed here. These fields are shown as read-only."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:612
|
#: includes/class-admin-page.php:619
|
||||||
msgid "S3 Host"
|
msgid "S3 Host"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:627
|
#: includes/class-admin-page.php:634
|
||||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:629
|
#: includes/class-admin-page.php:636
|
||||||
msgid "S3-compatible endpoint URL. Must start with \"https://\"."
|
msgid "S3-compatible endpoint URL. Must start with \"https://\"."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:638
|
#: includes/class-admin-page.php:645
|
||||||
msgid "Access Key ID"
|
msgid "Access Key ID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:653
|
#: includes/class-admin-page.php:660
|
||||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:655
|
#: includes/class-admin-page.php:662
|
||||||
msgid "Your S3 access key ID."
|
msgid "Your S3 access key ID."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:664
|
#: includes/class-admin-page.php:671
|
||||||
msgid "Secret Access Key"
|
msgid "Secret Access Key"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:679
|
#: includes/class-admin-page.php:686
|
||||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:681
|
#: includes/class-admin-page.php:688
|
||||||
msgid "Your S3 secret access key."
|
msgid "Your S3 secret access key."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:690
|
#: includes/class-admin-page.php:697
|
||||||
msgid "Bucket Name"
|
msgid "Bucket Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:705
|
#: includes/class-admin-page.php:712
|
||||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:707
|
#: includes/class-admin-page.php:714
|
||||||
msgid "The name of your S3 bucket."
|
msgid "The name of your S3 bucket."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:716
|
#: includes/class-admin-page.php:723
|
||||||
msgid "Region"
|
msgid "Region"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:732
|
#: includes/class-admin-page.php:739
|
||||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:734
|
#: includes/class-admin-page.php:741
|
||||||
msgid "AWS region (e.g., us-east-1, eu-west-1)."
|
msgid "AWS region (e.g., us-east-1, eu-west-1)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:743
|
#: includes/class-admin-page.php:750
|
||||||
msgid "Custom CDN Domain"
|
msgid "Custom CDN Domain"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:758
|
#: includes/class-admin-page.php:765
|
||||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:760
|
#: includes/class-admin-page.php:767
|
||||||
msgid "Optional: Custom domain for serving media files."
|
msgid "Optional: Custom domain for serving media files."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:769
|
#: includes/class-admin-page.php:776
|
||||||
msgid "Image Sub-sizes"
|
msgid "Image Sub-sizes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:779
|
#: includes/class-admin-page.php:786
|
||||||
msgid "All registered sizes (WordPress default)"
|
msgid "All registered sizes (WordPress default)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:780
|
#: includes/class-admin-page.php:787
|
||||||
msgid "Only thumbnail (faster uploads)"
|
msgid "Only thumbnail (faster uploads)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:781
|
#: includes/class-admin-page.php:788
|
||||||
msgid "No sub-sizes (original only)"
|
msgid "No sub-sizes (original only)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:806
|
#: includes/class-admin-page.php:813
|
||||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:808
|
#: includes/class-admin-page.php:815
|
||||||
msgid "Reduces work for large uploads (e.g. camera files). Also disables the -scaled derivative in thumbnail/none modes."
|
msgid "Reduces work for large uploads (e.g. camera files). Also disables the -scaled derivative in thumbnail/none modes."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:818
|
#: includes/class-admin-page.php:823
|
||||||
#: includes/class-admin-page.php:828
|
msgid "Data Cleanup"
|
||||||
msgid "Save Settings"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:821
|
#: includes/class-admin-page.php:833
|
||||||
msgid "To modify settings defined in wp-config.php, please edit your wp-config.php file directly."
|
msgid "Delete all plugin data when the plugin is uninstalled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:836
|
#: includes/class-admin-page.php:836
|
||||||
#: includes/class-admin-page.php:887
|
msgid "By default, all data is preserved when the plugin is uninstalled. Check this to remove settings, statistics, and post meta on uninstall."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/class-admin-page.php:845
|
||||||
|
msgid "To modify settings defined in wp-config.php, please edit your wp-config.php file directly."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/class-admin-page.php:848
|
||||||
|
msgid "Save Settings"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/class-admin-page.php:854
|
||||||
|
#: includes/class-admin-page.php:905
|
||||||
msgid "Test Connection"
|
msgid "Test Connection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:838
|
#: includes/class-admin-page.php:856
|
||||||
msgid "Test your S3 configuration to ensure everything is working correctly."
|
msgid "Test your S3 configuration to ensure everything is working correctly."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: %s is the file name.
|
#. translators: %s is the file name.
|
||||||
#: includes/class-admin-page.php:860
|
#: includes/class-admin-page.php:878
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "File: %s"
|
msgid "File: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:866
|
#: includes/class-admin-page.php:884
|
||||||
msgid "URL:"
|
msgid "URL:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:875
|
#: includes/class-admin-page.php:893
|
||||||
msgid "Delete this file"
|
msgid "Delete this file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:892
|
#: includes/class-admin-page.php:910
|
||||||
msgid "Test S3 Connection"
|
msgid "Test S3 Connection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:895
|
#: includes/class-admin-page.php:913
|
||||||
msgid "Verify that your S3 bucket is accessible with the configured credentials."
|
msgid "Verify that your S3 bucket is accessible with the configured credentials."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:901
|
#: includes/class-admin-page.php:919
|
||||||
#: includes/class-admin-page.php:906
|
#: includes/class-admin-page.php:924
|
||||||
msgid "Upload Test File"
|
msgid "Upload Test File"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-admin-page.php:909
|
#: includes/class-admin-page.php:927
|
||||||
msgid "Upload a test file to S3 with a timestamped name (test-YYYYMMDDHHMMSS.txt). The file will remain in S3 until manually deleted."
|
msgid "Upload a test file to S3 with a timestamped name (test-YYYYMMDDHHMMSS.txt). The file will remain in S3 until manually deleted."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/class-plugin.php:170
|
#: includes/class-cli.php:83
|
||||||
msgid "Every 5 Minutes"
|
msgid "Plugin is not configured. Set S3 credentials in wp-config.php or Settings → iDrivee2."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: robotstxt-updater.php:389
|
#: includes/class-cli.php:86
|
||||||
msgid "Security check failed"
|
msgid "Testing connection to bucket:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/class-cli.php:91
|
||||||
|
msgid "Connection successful — bucket is accessible."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/class-cli.php:93
|
||||||
|
msgid "AWS error:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/class-cli.php:95
|
||||||
|
msgid "Connection failed:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. translators: 1: number of files deleted, 2: number remaining in queue.
|
||||||
|
#: includes/class-cli.php:126
|
||||||
|
#, php-format
|
||||||
|
msgid "Cleanup complete: %1$d file deleted, %2$d remaining."
|
||||||
|
msgid_plural "Cleanup complete: %1$d files deleted, %2$d remaining."
|
||||||
|
msgstr[0] ""
|
||||||
|
msgstr[1] ""
|
||||||
|
|
||||||
|
#. translators: %d: number of files remaining in queue.
|
||||||
|
#: includes/class-cli.php:135
|
||||||
|
#, php-format
|
||||||
|
msgid "Cleanup complete: no files to delete, %d remaining in queue."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/class-cli.php:167
|
||||||
|
msgid "No S3 operations recorded."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. translators: %d: number of days.
|
||||||
|
#: includes/class-cli.php:172
|
||||||
|
#, php-format
|
||||||
|
msgid "S3 operations (last %d days):"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. translators: %s: link to the ROBOTSTXT Manager plugin page.
|
||||||
|
#: includes/class-manager-dependency.php:144
|
||||||
|
#, php-format
|
||||||
|
msgid "To receive plugin updates, the ROBOTSTXT Manager plugin must be installed and active. Download it from %s."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/class-plugin.php:179
|
||||||
|
msgid "Every 5 Minutes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
||||||
271
readme.txt
271
readme.txt
|
|
@ -3,9 +3,9 @@ Contributors: robotstxt, javiercasares
|
||||||
Tags: media, upload, s3, cdn, storage, idrivee2, cloud
|
Tags: media, upload, s3, cdn, storage, idrivee2, cloud
|
||||||
Requires at least: 5.3
|
Requires at least: 5.3
|
||||||
Tested up to: 7.1
|
Tested up to: 7.1
|
||||||
Stable tag: 1.4.1
|
Stable tag: 1.4.2
|
||||||
Requires PHP: 8.1
|
Requires PHP: 8.1
|
||||||
Version: 1.4.1
|
Version: 1.4.2
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
|
|
||||||
|
|
@ -40,10 +40,25 @@ iDrivee2 Media Upload is a WordPress plugin that automatically uploads media fil
|
||||||
|
|
||||||
**Requirements:**
|
**Requirements:**
|
||||||
|
|
||||||
* WordPress 6.8 or higher
|
* WordPress 5.3 or higher
|
||||||
* PHP 8.2, 8.3, or 8.4
|
* PHP 8.1 to 8.5
|
||||||
* MariaDB 10.6+ or MySQL 5.7+
|
* MariaDB 10.6+ or MySQL 5.7+
|
||||||
* S3-compatible storage (iDrivee2, AWS S3, DigitalOcean Spaces, etc.)
|
* S3-compatible storage (iDrivee2, AWS S3, DigitalOcean Spaces, etc.)
|
||||||
|
* For automatic updates: the [ROBOTSTXT Manager](https://www.robotstxt.software/plugins/robotstxt-manager/) plugin installed and active
|
||||||
|
|
||||||
|
== Using the plugin ==
|
||||||
|
|
||||||
|
= WP-CLI =
|
||||||
|
|
||||||
|
The plugin provides three WP-CLI commands for operations and diagnostics:
|
||||||
|
|
||||||
|
* `wp idrivee2 test-connection` — verify that the S3 bucket is accessible with the configured credentials
|
||||||
|
* `wp idrivee2 cleanup-local-files` — manually run the local file cleanup that normally runs via WP-Cron every 5 minutes
|
||||||
|
* `wp idrivee2 stats --days=N` — show S3 operation statistics for the last N days (default: 7, max: 30)
|
||||||
|
|
||||||
|
= Automatic updates =
|
||||||
|
|
||||||
|
Plugin updates are delivered through the [ROBOTSTXT Manager](https://www.robotstxt.software/plugins/robotstxt-manager/) plugin. When it is not installed and active, the plugin shows a dismissible notice on the Plugins page and a persistent notice on Settings → iDrivee2.
|
||||||
|
|
||||||
== Extra Configurations ==
|
== Extra Configurations ==
|
||||||
|
|
||||||
|
|
@ -178,27 +193,60 @@ Yes. The URL rewriting happens at the WordPress level, so it works with all cach
|
||||||
|
|
||||||
= What PHP version is required? =
|
= What PHP version is required? =
|
||||||
|
|
||||||
PHP 8.2 or higher is required. The plugin uses strict type declarations and is tested on PHP 8.2, 8.3, and 8.4.
|
PHP 8.1 or higher is required. The plugin uses strict type declarations and is tested on PHP 8.1 to 8.5.
|
||||||
|
|
||||||
|
= How does this plugin receive updates? =
|
||||||
|
|
||||||
|
Updates are delivered through the [ROBOTSTXT Manager](https://www.robotstxt.software/plugins/robotstxt-manager/) plugin. Install and activate it to receive automatic updates.
|
||||||
|
|
||||||
== Compatibility ==
|
== Compatibility ==
|
||||||
|
|
||||||
* WordPress: 6.8 - 7.1
|
* WordPress: 5.3 - 7.1
|
||||||
* PHP: 8.2 - 8.5
|
* PHP: 8.1 - 8.5
|
||||||
* MariaDB: 10.6+
|
* MariaDB: 10.6+
|
||||||
* MySQL: 5.7+
|
* MySQL: 5.7+
|
||||||
|
|
||||||
**Code Quality:**
|
**Code Quality:**
|
||||||
|
|
||||||
* PHP Coding Standards: 0 errors
|
* PHP Coding Standards: 3.13.6 (0 errors)
|
||||||
* WordPress Coding Standards (WPCS): 3.3 (0 violations)
|
* WordPress Coding Standards (WPCS): 3.4.1 (0 violations)
|
||||||
* PHPStan: Level 9 (0 errors, maximum strictness)
|
* PHPStan: Level 9 (0 errors, maximum strictness)
|
||||||
* PHP Coding Standards: 0 errors
|
* PHPCompatibility: 8.1-8.5 (fully compatible)
|
||||||
* WordPress Coding Standards (WPCS): 3.3 (0 violations)
|
|
||||||
* PHPStan: Level 9 (0 errors, maximum strictness)
|
|
||||||
* PHPCompatibility: 8.2-8.5 (fully compatible)
|
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.4.2 =
|
||||||
|
|
||||||
|
_Release date: 2026-08-17_
|
||||||
|
|
||||||
|
**Added**
|
||||||
|
|
||||||
|
* Dismissible admin notice on the Plugins page when the ROBOTSTXT Manager plugin is not installed or active, linking to https://www.robotstxt.software/plugins/robotstxt-manager/
|
||||||
|
* Persistent (non-dismissible) notice on Settings → iDrivee2 under the same condition
|
||||||
|
|
||||||
|
**Changed**
|
||||||
|
|
||||||
|
* Removed the bundled Gitea auto-updater (`robotstxt-updater.php` and `update.json`); automatic updates are now handled by the ROBOTSTXT Manager plugin
|
||||||
|
* Plugin URI and new `Update URI` header point to https://www.robotstxt.software/plugins/idrivee2-media-upload/
|
||||||
|
* Author URI updated to https://www.robotstxt.software/
|
||||||
|
* Composer dependencies updated (aws-sdk-php 3.392.3, guzzle 8.0.2, no known CVEs)
|
||||||
|
|
||||||
|
**Localization**
|
||||||
|
|
||||||
|
* POT regenerated for 1.4.2; Spanish (es_ES) and Catalan (ca) translations updated — 69/69 strings in both locales
|
||||||
|
|
||||||
|
**Compatibility**
|
||||||
|
|
||||||
|
* WordPress: 5.3 - 7.1
|
||||||
|
* PHP: 8.1 - 8.5
|
||||||
|
|
||||||
|
**Tests**
|
||||||
|
|
||||||
|
* PHP Coding Standards: 3.13.6 (0 errors)
|
||||||
|
* WordPress Coding Standards: 3.4.1 (0 violations)
|
||||||
|
* PHPStan: Level 9, 0 errors
|
||||||
|
* PHPUnit: 78 tests, 125 assertions
|
||||||
|
|
||||||
= 1.4.1 =
|
= 1.4.1 =
|
||||||
|
|
||||||
_Release date: 2026-08-10_
|
_Release date: 2026-08-10_
|
||||||
|
|
@ -276,202 +324,9 @@ _Release date: 2026-07-18_
|
||||||
* PHPStan: Level 9, 0 errors
|
* PHPStan: Level 9, 0 errors
|
||||||
* PHPUnit: 38 tests, 60 assertions
|
* PHPUnit: 38 tests, 60 assertions
|
||||||
|
|
||||||
= 1.2.1 =
|
|
||||||
|
|
||||||
_Release date: 2026-06-05_
|
|
||||||
|
|
||||||
**Fixed**
|
|
||||||
|
|
||||||
* **Infinite recursion on image upload** — `wp_update_post()` (used to update the attachment GUID to the S3/CDN URL) was firing the `edit_attachment` WordPress action, which re-triggered the upload method, causing infinite recursion. WordPress reported "The server cannot process the image." Fixed by removing the `edit_attachment` hook (unnecessary — `wp_update_attachment_metadata` covers all new-upload scenarios) and adding a per-attachment re-entry guard.
|
|
||||||
* **Fatal error: `fclose()` on already-closed stream** — The AWS SDK closes file streams automatically after upload. The cleanup block was calling `fclose()` on already-closed streams, throwing a `TypeError`. Fixed by checking `is_resource()` before closing.
|
|
||||||
|
|
||||||
**Compatibility**
|
|
||||||
|
|
||||||
* WordPress: 4.1 - 7.1
|
|
||||||
* PHP: 8.1 - 8.5
|
|
||||||
|
|
||||||
**Tests**
|
|
||||||
|
|
||||||
* PHP Coding Standards: 3.13.5 (0 errors)
|
|
||||||
* WordPress Coding Standards: 3.3.0 (0 violations)
|
|
||||||
* PHPStan: Level 9, 0 errors
|
|
||||||
* PHPUnit: 22 tests, 54 assertions
|
|
||||||
|
|
||||||
= 1.2.0 =
|
|
||||||
|
|
||||||
_Release date: 2026-06-02_
|
|
||||||
|
|
||||||
**Highlights**
|
|
||||||
|
|
||||||
* Media uploads now run concurrently — dramatically faster for bulk imports
|
|
||||||
* Files stream directly from disk; no full load into memory
|
|
||||||
|
|
||||||
**Performance**
|
|
||||||
|
|
||||||
* Concurrent S3 uploads via AWS `CommandPool` (default 5 simultaneous, tunable via `IDRIVEE2_UPLOAD_CONCURRENCY` in wp-config.php)
|
|
||||||
* Files streamed directly from disk using native PHP streams instead of loading entirely into memory — critical for large images
|
|
||||||
* Removed per-file `headObject` pre-check — files are assumed new (they just came from WordPress thumbnail generation)
|
|
||||||
* Single DB write for upload statistics per attachment instead of one per file
|
|
||||||
* Hook priority lowered from 999 to 10 — no unnecessary delay
|
|
||||||
|
|
||||||
**Compatibility**
|
|
||||||
|
|
||||||
* WordPress: 4.1 - 7.1
|
|
||||||
* PHP: 8.1 - 8.5
|
|
||||||
|
|
||||||
**Tests**
|
|
||||||
|
|
||||||
* PHP Coding Standards: 3.13.5 (0 errors)
|
|
||||||
* WordPress Coding Standards: 3.3.0 (0 violations)
|
|
||||||
* PHPStan: Level 9, 0 errors
|
|
||||||
* PHPUnit: 22 tests, 54 assertions
|
|
||||||
|
|
||||||
= 1.1.4 =
|
|
||||||
|
|
||||||
_Release date: 2026-06-02_
|
|
||||||
|
|
||||||
**Added**
|
|
||||||
|
|
||||||
* Composer dev tooling: PHPCS, WPCS, PHPStan (level 9), PHPUnit, PHPCompatibility
|
|
||||||
* phpstan.neon, phpcs.xml, phpunit.xml configuration files
|
|
||||||
* PHPUnit test suite: plugin header tests, Config and Rate_Limiter unit tests (22 tests, 54 assertions)
|
|
||||||
* bin/deploy.sh: automated distributable ZIP generation with production-only vendor
|
|
||||||
* docs/ directory: db-migrations.md, known-issues.md
|
|
||||||
|
|
||||||
**Changed**
|
|
||||||
|
|
||||||
* Tested up to WordPress 7.1
|
|
||||||
* PHP compatibility declared: 8.2–8.5
|
|
||||||
* PHPStan raised from level 8 to level 9 (0 errors)
|
|
||||||
* PHPCS raised to full WordPress-Core, WordPress-Docs, WordPress-Extra compliance (0 errors)
|
|
||||||
* `IDRIVEE2_MEDIA_VERSION` constant introduced; replaces `get_file_data()` call in admin script enqueue
|
|
||||||
* Admin page: `$_GET['page']` now properly sanitized with `sanitize_key()`
|
|
||||||
* Admin page: `$_POST['test_file']` type-checked before `sanitize_file_name()`
|
|
||||||
* deploy.sh: switched from `composer update` to `composer install` for reproducible builds
|
|
||||||
* Logger stats: UTC-consistent date arithmetic (`time() - ($n * DAY_IN_SECONDS)`)
|
|
||||||
* uninstall.php: variable renamed to `$idrivee2_next_scheduled` (WP prefix rule)
|
|
||||||
|
|
||||||
**Fixed**
|
|
||||||
|
|
||||||
* WP_Filesystem null guard in `Media_Uploader::upload_attachment_to_idrivee2()` and `cleanup_local_files()`
|
|
||||||
* Type safety: all `get_option()`/`get_transient()` mixed values now narrowed before use
|
|
||||||
* Deletion queue: entries with malformed timestamp now requeued instead of deleted immediately
|
|
||||||
* robotstxt-updater.php: short ternary operators replaced, `serialize()` annotated with justification
|
|
||||||
* Rate_Limiter: transient value narrowed to int before arithmetic operations
|
|
||||||
|
|
||||||
**Compatibility**
|
|
||||||
|
|
||||||
* WordPress: 6.8 - 7.1
|
|
||||||
* PHP: 8.2 - 8.5
|
|
||||||
|
|
||||||
**Tests**
|
|
||||||
|
|
||||||
* PHP Coding Standards: 3.13.5 (0 errors)
|
|
||||||
* WordPress Coding Standards: 3.3.0 (0 violations)
|
|
||||||
* PHPStan: Level 9 (0 errors)
|
|
||||||
* PHPCompatibility: 8.2-8.5
|
|
||||||
|
|
||||||
= 1.1.2 =
|
|
||||||
|
|
||||||
_Release date: 2026-02-04_
|
|
||||||
|
|
||||||
**Changed**
|
|
||||||
|
|
||||||
* Deployment script updated to use PHP 8.2 as platform base for production builds
|
|
||||||
* Now uses composer update --no-dev instead of composer install --no-dev for consistent dependency resolution
|
|
||||||
* Temporarily configures platform.php 8.2 during build, then cleans up
|
|
||||||
|
|
||||||
**Improved**
|
|
||||||
|
|
||||||
* Production packages now guarantee PHP 8.2+ compatibility regardless of development environment PHP version
|
|
||||||
* Build consistency ensures reliable deployments across different server environments
|
|
||||||
|
|
||||||
= 1.1.1 =
|
|
||||||
|
|
||||||
_Release date: 2026-02-04_
|
|
||||||
|
|
||||||
**Fixed**
|
|
||||||
|
|
||||||
* Deployment script now includes essential files (update.json, robotstxt-updater.php, readme.txt, changelog.txt)
|
|
||||||
* Production packages now contain all files required for automatic updates from Gitea
|
|
||||||
|
|
||||||
= 1.1.0 =
|
|
||||||
|
|
||||||
_Release date: 2026-02-04_
|
|
||||||
|
|
||||||
**Changed**
|
|
||||||
|
|
||||||
* Added explicit PHP version requirement (>=8.2) to composer.json
|
|
||||||
* Updated update.json with correct plugin information
|
|
||||||
* Fixed Text Domain in robotstxt-updater.php to match plugin slug (idrivee2-media-upload)
|
|
||||||
* Migrated repository from GitHub to Gitea (git.robotstxt.es)
|
|
||||||
* Added Gitea Plugin URI and Primary Branch headers
|
|
||||||
|
|
||||||
**Fixed**
|
|
||||||
|
|
||||||
* Composer now validates PHP version during dependency installation
|
|
||||||
* Plugin update system correctly identifies the plugin
|
|
||||||
* Translations properly loaded for updater error messages
|
|
||||||
|
|
||||||
**Improved**
|
|
||||||
|
|
||||||
* All text domains now consistently use 'idrivee2-media-upload'
|
|
||||||
* Update metadata accurately reflects plugin information
|
|
||||||
|
|
||||||
= 1.0.0 =
|
|
||||||
|
|
||||||
_Release date: 2026-02-03_
|
|
||||||
|
|
||||||
**Added**
|
|
||||||
|
|
||||||
* Security logging system with comprehensive audit trail
|
|
||||||
* Rate limiting protection (60s users, 30s admins)
|
|
||||||
* S3 operation statistics tracking (30-day retention)
|
|
||||||
* Logger class for security and operations logging
|
|
||||||
* Rate_Limiter class for abuse prevention
|
|
||||||
* Comprehensive security audit documentation (7,500+ lines)
|
|
||||||
* Code quality report with metrics (3,200+ lines)
|
|
||||||
|
|
||||||
**Security**
|
|
||||||
|
|
||||||
* OWASP Top 10 (2021) 100% compliance
|
|
||||||
* Enhanced nonce validation
|
|
||||||
* Comprehensive input sanitization and output escaping
|
|
||||||
* Security logging for all critical operations
|
|
||||||
* Security rating: A+ (Excellent)
|
|
||||||
|
|
||||||
**Fixed**
|
|
||||||
|
|
||||||
* All 17 PHPStan level 8 type safety issues resolved
|
|
||||||
* Array type specifications added to all methods
|
|
||||||
* Null handling for AWS error messages
|
|
||||||
* Return type declarations match actual returns
|
|
||||||
|
|
||||||
= 0.3.0 =
|
|
||||||
|
|
||||||
_Release date: 2025-02-03_
|
|
||||||
|
|
||||||
**Added**
|
|
||||||
|
|
||||||
* Settings page in WordPress Admin (Settings → iDrivee2)
|
|
||||||
* Class-based architecture with 6 classes
|
|
||||||
* PHPUnit test structure
|
|
||||||
* PHPStan static analysis
|
|
||||||
* Deployment script (bin/deploy.sh)
|
|
||||||
|
|
||||||
**Changed**
|
|
||||||
|
|
||||||
* Menu location from Media → iDrivee2 to Settings → iDrivee2
|
|
||||||
* Architecture from functional to object-oriented
|
|
||||||
|
|
||||||
**Fixed**
|
|
||||||
|
|
||||||
* Code duplication eliminated (7 instances)
|
|
||||||
* WordPress Coding Standards violations
|
|
||||||
|
|
||||||
= Previous versions =
|
= Previous versions =
|
||||||
|
|
||||||
If you want to see the full changelog, visit the [changelog.txt](https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload/raw/branch/main/changelog.txt) file.
|
If you want to see the full changelog, visit the [plugin page](https://www.robotstxt.software/plugins/idrivee2-media-upload/).
|
||||||
|
|
||||||
== Compliance ==
|
== Compliance ==
|
||||||
|
|
||||||
|
|
@ -483,7 +338,7 @@ This plugin adheres to the following security measures and review protocols for
|
||||||
* [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards)
|
* [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards)
|
||||||
* [Plugin Check (PCP)](https://wordpress.org/plugins/plugin-check/)
|
* [Plugin Check (PCP)](https://wordpress.org/plugins/plugin-check/)
|
||||||
* [OWASP Top 10 (2021)](https://owasp.org/Top10/)
|
* [OWASP Top 10 (2021)](https://owasp.org/Top10/)
|
||||||
* [PHPStan Level 8](https://phpstan.org/user-guide/rule-levels)
|
* [PHPStan Level 9](https://phpstan.org/user-guide/rule-levels)
|
||||||
|
|
||||||
**Security Audit:**
|
**Security Audit:**
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,420 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generic JSON-based updater for ROBOTSTXT plugins.
|
|
||||||
*
|
|
||||||
* EXTERNAL DEPENDENCY — vendored, not part of the iDrivee2Media namespace.
|
|
||||||
*
|
|
||||||
* This file is a shared library copied verbatim across ROBOTSTXT plugins.
|
|
||||||
* It provides automatic update checks against a Gitea instance
|
|
||||||
* (git.robotstxt.es) by reading plugin headers and constructing the
|
|
||||||
* update-check URL. Cached responses are HMAC-signed with AUTH_SALT.
|
|
||||||
*
|
|
||||||
* Justification for inclusion (per AGENTS-compatibility-architecture.md):
|
|
||||||
* - Enables automatic updates from the private Gitea registry without
|
|
||||||
* manual ZIP uploads.
|
|
||||||
* - Self-contained: no Composer/npm dependency, reads headers only.
|
|
||||||
* - Uses the WP HTTP API (wp_remote_get) and transients for caching.
|
|
||||||
*
|
|
||||||
* @package ROBOTSTXT
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ! class_exists( 'Robotstxt_Updater' ) ) {
|
|
||||||
/**
|
|
||||||
* Class Robotstxt_Updater
|
|
||||||
*
|
|
||||||
* Generic updater that works with any plugin.
|
|
||||||
* Reads plugin headers and constructs update URL automatically.
|
|
||||||
*/
|
|
||||||
class Robotstxt_Updater {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Plugin file path.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private string $plugin_file_path;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Plugin basename (e.g., 'my-plugin/my-plugin.php').
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private string $plugin_basename;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Plugin slug (directory name).
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private string $plugin_slug;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Remote JSON URL.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private string $json_url;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Cache key.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private string $cache_key;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Plugin headers.
|
|
||||||
*
|
|
||||||
* @var array<string, string>
|
|
||||||
*/
|
|
||||||
private array $plugin_data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialize the updater.
|
|
||||||
*
|
|
||||||
* Usage in your main plugin file:
|
|
||||||
* require_once __DIR__ . '/robotstxt-updater.php';
|
|
||||||
* Robotstxt_Updater::init( __FILE__ );
|
|
||||||
*
|
|
||||||
* @param string $plugin_file_path Absolute path to the main plugin file.
|
|
||||||
*/
|
|
||||||
public static function init( string $plugin_file_path ): void {
|
|
||||||
$instance = new self( $plugin_file_path );
|
|
||||||
$instance->register();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* @param string $plugin_file_path Absolute path to the main plugin file.
|
|
||||||
*/
|
|
||||||
private function __construct( string $plugin_file_path ) {
|
|
||||||
$this->plugin_file_path = $plugin_file_path;
|
|
||||||
$this->plugin_basename = plugin_basename( $plugin_file_path );
|
|
||||||
$this->plugin_slug = dirname( $this->plugin_basename );
|
|
||||||
$this->plugin_data = $this->get_plugin_data();
|
|
||||||
$this->json_url = $this->build_json_url();
|
|
||||||
$this->cache_key = 'robotstxt_updater_' . md5( $this->plugin_basename );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register WordPress hooks.
|
|
||||||
*/
|
|
||||||
private function register(): void {
|
|
||||||
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'inject_update_info' ) );
|
|
||||||
add_filter( 'plugins_api', array( $this, 'provide_plugin_details' ), 10, 3 );
|
|
||||||
add_action( 'admin_init', array( $this, 'handle_cache_clear' ) );
|
|
||||||
add_action( 'robotstxt_updater_clear_cache', array( $this, 'clear_cache' ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get plugin headers.
|
|
||||||
*
|
|
||||||
* @return array<string, string> Plugin data.
|
|
||||||
*/
|
|
||||||
private function get_plugin_data(): array {
|
|
||||||
if ( ! function_exists( 'get_plugin_data' ) ) {
|
|
||||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Plugin file header data.
|
|
||||||
*
|
|
||||||
* @var array<string, string> $data
|
|
||||||
*/
|
|
||||||
$data = get_plugin_data( $this->plugin_file_path, false, false );
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Safely cast a mixed value to string.
|
|
||||||
*
|
|
||||||
* @param mixed $value The value to cast.
|
|
||||||
* @param string $default Fallback when value is not a string.
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
private function str_val( mixed $value, string $default = '' ): string {
|
|
||||||
return is_string( $value ) ? $value : $default;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Build JSON URL from plugin headers.
|
|
||||||
*
|
|
||||||
* Tries to use "Gitea Plugin URI" header to construct the URL.
|
|
||||||
* Falls back to Plugin URI if Gitea URI is not available.
|
|
||||||
*
|
|
||||||
* @return string JSON URL.
|
|
||||||
*/
|
|
||||||
private function build_json_url(): string {
|
|
||||||
// Try Gitea Plugin URI (format: "OWNER/REPO" or full URL).
|
|
||||||
if ( ! empty( $this->plugin_data['Gitea Plugin URI'] ) ) {
|
|
||||||
$gitea_uri = $this->plugin_data['Gitea Plugin URI'];
|
|
||||||
|
|
||||||
// If it's already a full URL, use it.
|
|
||||||
if ( str_starts_with( $gitea_uri, 'http' ) ) {
|
|
||||||
// Extract base URL and construct JSON path.
|
|
||||||
return rtrim( $gitea_uri, '/' ) . '/raw/branch/main/update.json';
|
|
||||||
}
|
|
||||||
|
|
||||||
// If it's in format "OWNER/REPO", construct full URL.
|
|
||||||
if ( preg_match( '#^[^/]+/[^/]+$#', $gitea_uri ) ) {
|
|
||||||
return "https://git.robotstxt.es/{$gitea_uri}/raw/branch/main/update.json";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fallback: try to extract from Plugin URI.
|
|
||||||
if ( ! empty( $this->plugin_data['PluginURI'] ) ) {
|
|
||||||
$plugin_uri = $this->plugin_data['PluginURI'];
|
|
||||||
if ( str_contains( $plugin_uri, 'git.robotstxt.es' ) ) {
|
|
||||||
return rtrim( $plugin_uri, '/' ) . '/raw/branch/main/update.json';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Last resort: construct from plugin slug.
|
|
||||||
return "https://git.robotstxt.es/ROBOTSTXT/{$this->plugin_slug}/raw/branch/main/update.json";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inject update info into WP's plugin update transient.
|
|
||||||
*
|
|
||||||
* @param object|mixed $transient The update_plugins transient.
|
|
||||||
*
|
|
||||||
* @return object The modified transient.
|
|
||||||
*/
|
|
||||||
public function inject_update_info( $transient ) {
|
|
||||||
if ( ! is_object( $transient ) ) {
|
|
||||||
$transient = new stdClass();
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( empty( $transient->checked ) || ! is_array( $transient->checked ) ) {
|
|
||||||
return $transient;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( empty( $transient->checked[ $this->plugin_basename ] ) ) {
|
|
||||||
return $transient;
|
|
||||||
}
|
|
||||||
|
|
||||||
$current_version = $this->str_val( $transient->checked[ $this->plugin_basename ] );
|
|
||||||
$remote = $this->get_remote_data();
|
|
||||||
|
|
||||||
if ( empty( $remote['version'] ) || empty( $remote['download_url'] ) ) {
|
|
||||||
return $transient;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ! $this->is_compatible( $remote ) ) {
|
|
||||||
return $transient;
|
|
||||||
}
|
|
||||||
|
|
||||||
$remote_version = $this->str_val( $remote['version'] );
|
|
||||||
if ( version_compare( $remote_version, $current_version, '>' ) ) {
|
|
||||||
$update = (object) array(
|
|
||||||
'slug' => $this->str_val( $remote['slug'] ?? null, $this->plugin_slug ),
|
|
||||||
'plugin' => $this->plugin_basename,
|
|
||||||
'new_version' => $remote_version,
|
|
||||||
'url' => $this->str_val( $remote['homepage'] ?? null, $this->plugin_data['PluginURI'] ?? '' ),
|
|
||||||
'package' => $this->str_val( $remote['download_url'] ),
|
|
||||||
'tested' => $this->str_val( $remote['tested'] ?? '' ),
|
|
||||||
'requires' => $this->str_val( $remote['requires'] ?? '' ),
|
|
||||||
'requires_php' => $this->str_val( $remote['requires_php'] ?? '' ),
|
|
||||||
);
|
|
||||||
|
|
||||||
$transient_obj = $transient instanceof \stdClass ? $transient : new \stdClass();
|
|
||||||
if ( ! isset( $transient_obj->response ) || ! is_array( $transient_obj->response ) ) {
|
|
||||||
$transient_obj->response = array();
|
|
||||||
}
|
|
||||||
$transient_obj->response[ $this->plugin_basename ] = $update;
|
|
||||||
return $transient_obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $transient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Provide "View details" modal content.
|
|
||||||
*
|
|
||||||
* @param false|object|array<string,mixed> $result The result object or array.
|
|
||||||
* @param string $action The type of information being requested.
|
|
||||||
* @param object $args Plugin API arguments.
|
|
||||||
*
|
|
||||||
* @return false|object The plugin information object or false.
|
|
||||||
*/
|
|
||||||
public function provide_plugin_details( $result, string $action, object $args ): false|object {
|
|
||||||
if ( 'plugin_information' !== $action ) {
|
|
||||||
return is_object( $result ) ? $result : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( empty( $args->slug ) || $args->slug !== $this->plugin_slug ) {
|
|
||||||
return is_object( $result ) ? $result : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$remote = $this->get_remote_data();
|
|
||||||
|
|
||||||
if ( empty( $remote['version'] ) ) {
|
|
||||||
return is_object( $result ) ? $result : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (object) array(
|
|
||||||
'name' => $this->str_val( $remote['name'] ?? null, $this->plugin_data['Name'] ?? $this->plugin_slug ),
|
|
||||||
'slug' => $this->str_val( $remote['slug'] ?? null, $this->plugin_slug ),
|
|
||||||
'version' => $this->str_val( $remote['version'] ),
|
|
||||||
'author' => $this->str_val( $remote['author'] ?? null, $this->plugin_data['Author'] ?? '' ),
|
|
||||||
'homepage' => $this->str_val( $remote['homepage'] ?? null, $this->plugin_data['PluginURI'] ?? '' ),
|
|
||||||
'requires' => $this->str_val( $remote['requires'] ?? '' ),
|
|
||||||
'tested' => $this->str_val( $remote['tested'] ?? '' ),
|
|
||||||
'requires_php' => $this->str_val( $remote['requires_php'] ?? '' ),
|
|
||||||
'sections' => array(
|
|
||||||
'description' => $this->str_val( $remote['description'] ?? null, $this->plugin_data['Description'] ?? '' ),
|
|
||||||
'changelog' => $this->str_val( $remote['changelog'] ?? '' ),
|
|
||||||
),
|
|
||||||
'download_link' => $this->str_val( $remote['download_url'] ?? '' ),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get remote data with caching and HMAC signature verification.
|
|
||||||
*
|
|
||||||
* @return array<string, mixed> Remote data.
|
|
||||||
*/
|
|
||||||
private function get_remote_data(): array {
|
|
||||||
$cached = get_site_transient( $this->cache_key );
|
|
||||||
|
|
||||||
// Verify HMAC signature if AUTH_SALT is defined and cache has signature.
|
|
||||||
if ( false !== $cached && defined( 'AUTH_SALT' ) && '' !== AUTH_SALT ) {
|
|
||||||
if ( is_array( $cached ) && isset( $cached['signature'], $cached['data'] ) ) {
|
|
||||||
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize -- HMAC integrity verification for cached data.
|
|
||||||
$expected_sig = hash_hmac( 'sha256', $this->cache_key . serialize( $cached['data'] ), AUTH_SALT );
|
|
||||||
|
|
||||||
if ( hash_equals( $expected_sig, $cached['signature'] ) ) {
|
|
||||||
// Signature valid, return data.
|
|
||||||
return is_array( $cached['data'] ) ? $cached['data'] : array();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Signature invalid, delete corrupted cache.
|
|
||||||
delete_site_transient( $this->cache_key );
|
|
||||||
$cached = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// If no valid cache, fetch fresh data.
|
|
||||||
if ( false === $cached ) {
|
|
||||||
$remote = $this->fetch_json();
|
|
||||||
|
|
||||||
// Store with HMAC signature if AUTH_SALT is available.
|
|
||||||
if ( defined( 'AUTH_SALT' ) && '' !== AUTH_SALT ) {
|
|
||||||
$payload = array(
|
|
||||||
'data' => ! empty( $remote ) ? $remote : array(),
|
|
||||||
'timestamp' => time(),
|
|
||||||
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize -- HMAC integrity for transient cache.
|
|
||||||
'signature' => hash_hmac( 'sha256', $this->cache_key . serialize( ! empty( $remote ) ? $remote : array() ), AUTH_SALT ),
|
|
||||||
);
|
|
||||||
set_site_transient( $this->cache_key, $payload, 6 * HOUR_IN_SECONDS );
|
|
||||||
} else {
|
|
||||||
// Fallback to standard caching.
|
|
||||||
set_site_transient( $this->cache_key, ! empty( $remote ) ? $remote : array(), 6 * HOUR_IN_SECONDS );
|
|
||||||
}
|
|
||||||
|
|
||||||
return $remote;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Legacy cache format without signature (backward compatibility).
|
|
||||||
return is_array( $cached ) ? $cached : array();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fetch JSON from remote URL.
|
|
||||||
*
|
|
||||||
* @return array<string, mixed> Decoded JSON data.
|
|
||||||
*/
|
|
||||||
private function fetch_json(): array {
|
|
||||||
$response = wp_remote_get(
|
|
||||||
$this->json_url,
|
|
||||||
array(
|
|
||||||
'timeout' => 10,
|
|
||||||
'headers' => array(
|
|
||||||
'Accept' => 'application/json',
|
|
||||||
),
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if ( is_wp_error( $response ) ) {
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
$code = (int) wp_remote_retrieve_response_code( $response );
|
|
||||||
if ( $code < 200 || $code >= 300 ) {
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
$body = wp_remote_retrieve_body( $response );
|
|
||||||
$data = json_decode( $body, true );
|
|
||||||
|
|
||||||
return is_array( $data ) ? $data : array();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check compatibility.
|
|
||||||
*
|
|
||||||
* @param array<string, mixed> $remote Remote data.
|
|
||||||
*
|
|
||||||
* @return bool True if compatible.
|
|
||||||
*/
|
|
||||||
private function is_compatible( array $remote ): bool {
|
|
||||||
if ( ! empty( $remote['requires_php'] ) ) {
|
|
||||||
$req_php = $this->str_val( $remote['requires_php'] );
|
|
||||||
if ( version_compare( PHP_VERSION, $req_php, '<' ) ) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ! empty( $remote['requires'] ) ) {
|
|
||||||
$req_wp = $this->str_val( $remote['requires'] );
|
|
||||||
if ( version_compare( get_bloginfo( 'version' ), $req_wp, '<' ) ) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle manual cache clear via URL parameter.
|
|
||||||
*/
|
|
||||||
public function handle_cache_clear(): void {
|
|
||||||
// Check if this is a cache clear request first.
|
|
||||||
$clear_cache = filter_input( INPUT_GET, 'robotstxt_clear_update_cache', FILTER_UNSAFE_RAW );
|
|
||||||
if ( null === $clear_cache ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is a cache clear request - now verify nonce.
|
|
||||||
$nonce_raw = filter_input( INPUT_GET, '_wpnonce', FILTER_UNSAFE_RAW );
|
|
||||||
$nonce = $nonce_raw ? sanitize_text_field( wp_unslash( $nonce_raw ) ) : '';
|
|
||||||
|
|
||||||
if ( ! wp_verify_nonce( $nonce, 'robotstxt_clear_update_cache' ) ) {
|
|
||||||
wp_die( esc_html__( 'Security check failed', 'idrivee2-media-upload' ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check permissions.
|
|
||||||
if ( ! current_user_can( 'update_plugins' ) ) {
|
|
||||||
wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'idrivee2-media-upload' ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->clear_cache();
|
|
||||||
wp_safe_redirect( remove_query_arg( array( 'robotstxt_clear_update_cache', '_wpnonce' ) ) );
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clear update cache.
|
|
||||||
*/
|
|
||||||
public function clear_cache(): void {
|
|
||||||
delete_site_transient( $this->cache_key );
|
|
||||||
delete_site_transient( 'update_plugins' );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
12
update.json
12
update.json
|
|
@ -1,20 +1,20 @@
|
||||||
{
|
{
|
||||||
"name": "iDrivee2 Media Upload",
|
"name": "iDrivee2 Media Upload",
|
||||||
"slug": "idrivee2-media-upload",
|
"slug": "idrivee2-media-upload",
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"download_url": "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload/releases/download/1.4.1/idrivee2-media-upload-1.4.1.zip",
|
"download_url": "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload/releases/download/1.4.2/idrivee2-media-upload-1.4.2.zip",
|
||||||
"requires": "5.3",
|
"requires": "5.3",
|
||||||
"requires_php": "8.1",
|
"requires_php": "8.1",
|
||||||
"tested": "7.1",
|
"tested": "7.1",
|
||||||
"last_updated": "2026-08-10",
|
"last_updated": "2026-08-17",
|
||||||
"author": "ROBOTSTXT",
|
"author": "ROBOTSTXT",
|
||||||
"author_profile": "https://www.robotstxt.es/",
|
"author_profile": "https://www.robotstxt.software/",
|
||||||
"homepage": "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload",
|
"homepage": "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload",
|
||||||
"description": "Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.",
|
"description": "Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.",
|
||||||
"changelog": "<h3>1.4.1 - 2026-08-10</h3><ul><li><strong>Added:</strong> Data preservation option — checkbox under Settings → iDrivee2 to opt in to data deletion on uninstall (default: preserve).</li><li><strong>Added:</strong> WP-CLI commands: wp idrivee2 test-connection, wp idrivee2 cleanup-local-files, wp idrivee2 stats --days=N.</li><li><strong>Security:</strong> Logger validates IP with filter_var(FILTER_VALIDATE_IP); Admin page wp_unslash at read point.</li><li><strong>Changed:</strong> WordPress minimum corrected 4.1 → 5.3 (wp-compat verified). Uninstall uses delete_post_meta_by_key() with opt-in data preservation.</li><li><strong>Changed:</strong> Cron cleanup uses unlink() directly (WP_Filesystem unavailable without credentials in cron context).</li></ul><h3>1.3.0 - 2026-07-18</h3><ul><li><strong>Added:</strong> Image sub-sizes control under Settings → iDrivee2 — three modes: all (default), thumbnail, none.</li><li><strong>Added:</strong> IDRIVEE2_MEDIA_SUBSIZES_MODE wp-config.php constant; UI field becomes read-only when set.</li><li><strong>Security:</strong> composer audit CVEs resolved — guzzlehttp/guzzle 7.11→7.15.2, guzzlehttp/psr7 2.11→2.13, mtdowling/jmespath.php 2.8→2.9.</li></ul><h3>1.2.1 - 2026-06-05</h3><ul><li><strong>Fixed:</strong> Infinite recursion on image upload — wp_update_post() fired edit_attachment which re-triggered the upload method.</li><li><strong>Fixed:</strong> Fatal TypeError: fclose() on already-closed stream — AWS SDK closes streams after upload.</li></ul><h3>1.2.0 - 2026-06-02</h3><ul><li><strong>Performance:</strong> Concurrent S3 uploads via AWS CommandPool (default 5, tunable via IDRIVEE2_UPLOAD_CONCURRENCY).</li><li><strong>Performance:</strong> Stream files directly from disk — no full load into memory.</li></ul>",
|
"changelog": "",
|
||||||
"sections": {
|
"sections": {
|
||||||
"description": "Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging. The plugin intercepts WordPress media uploads, pushes files to an S3-compatible bucket, deletes local copies, and rewrites URLs to serve media from the CDN.",
|
"description": "Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging. The plugin intercepts WordPress media uploads, pushes files to an S3-compatible bucket, deletes local copies, and rewrites URLs to serve media from the CDN.",
|
||||||
"changelog": "<h3>1.4.1 - 2026-08-10</h3><ul><li><strong>Added:</strong> Data preservation option — checkbox under Settings → iDrivee2 to opt in to data deletion on uninstall (default: preserve).</li><li><strong>Added:</strong> WP-CLI commands: wp idrivee2 test-connection, wp idrivee2 cleanup-local-files, wp idrivee2 stats --days=N.</li><li><strong>Security:</strong> Logger validates IP with filter_var(FILTER_VALIDATE_IP); Admin page wp_unslash at read point.</li><li><strong>Changed:</strong> WordPress minimum corrected 4.1 → 5.3 (wp-compat verified). Uninstall uses delete_post_meta_by_key() with opt-in data preservation.</li><li><strong>Changed:</strong> Cron cleanup uses unlink() directly (WP_Filesystem unavailable without credentials in cron context).</li></ul><h3>1.3.0 - 2026-07-18</h3><ul><li><strong>Added:</strong> Image sub-sizes control under Settings → iDrivee2 — three modes: all (default), thumbnail, none.</li><li><strong>Added:</strong> IDRIVEE2_MEDIA_SUBSIZES_MODE wp-config.php constant; UI field becomes read-only when set.</li><li><strong>Security:</strong> composer audit CVEs resolved — guzzlehttp/guzzle 7.11→7.15.2, guzzlehttp/psr7 2.11→2.13, mtdowling/jmespath.php 2.8→2.9.</li></ul><h3>1.2.1 - 2026-06-05</h3><ul><li><strong>Fixed:</strong> Infinite recursion on image upload — wp_update_post() fired edit_attachment which re-triggered the upload method.</li><li><strong>Fixed:</strong> Fatal TypeError: fclose() on already-closed stream — AWS SDK closes streams after upload.</li></ul><h3>1.2.0 - 2026-06-02</h3><ul><li><strong>Performance:</strong> Concurrent S3 uploads via AWS CommandPool (default 5, tunable via IDRIVEE2_UPLOAD_CONCURRENCY).</li><li><strong>Performance:</strong> Stream files directly from disk — no full load into memory.</li></ul>"
|
"changelog": ""
|
||||||
},
|
},
|
||||||
"banners": {
|
"banners": {
|
||||||
"low": "",
|
"low": "",
|
||||||
|
|
|
||||||
27
vendor/aws/aws-sdk-php/.changes/3.100.0
vendored
Normal file
27
vendor/aws/aws-sdk-php/.changes/3.100.0
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "feature",
|
||||||
|
"category": "PersonalizeRuntime",
|
||||||
|
"description": "Amazon Personalize is a machine learning service that makes it easy for developers to create individualized recommendations for customers using their applications."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "CodeBuild",
|
||||||
|
"description": "AWS CodeBuild adds support for source version on project level."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "CodeCommit",
|
||||||
|
"description": "This release adds two merge strategies for merging pull requests: squash and three-way. It also adds functionality for resolving merge conflicts, testing merge outcomes, and for merging branches using one of the three supported merge strategies."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "feature",
|
||||||
|
"category": "Personalize",
|
||||||
|
"description": "Amazon Personalize is a machine learning service that makes it easy for developers to create individualized recommendations for customers using their applications."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "feature",
|
||||||
|
"category": "PersonalizeEvents",
|
||||||
|
"description": "Introducing Amazon Personalize - a machine learning service that makes it easy for developers to create individualized recommendations for customers using their applications."
|
||||||
|
}
|
||||||
|
]
|
||||||
7
vendor/aws/aws-sdk-php/.changes/3.100.1
vendored
Normal file
7
vendor/aws/aws-sdk-php/.changes/3.100.1
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "SageMaker",
|
||||||
|
"description": "The default TaskTimeLimitInSeconds of labeling job is increased to 8 hours. Batch Transform introduces a new DataProcessing field which supports input and output filtering and data joining. Training job increases the max allowed input channels from 8 to 20."
|
||||||
|
}
|
||||||
|
]
|
||||||
7
vendor/aws/aws-sdk-php/.changes/3.100.2
vendored
Normal file
7
vendor/aws/aws-sdk-php/.changes/3.100.2
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "ServiceCatalog",
|
||||||
|
"description": "This release adds a new field named Guidance to update provisioning artifact, this field can be set by the administrator to provide guidance to end users about which provisioning artifacts to use."
|
||||||
|
}
|
||||||
|
]
|
||||||
27
vendor/aws/aws-sdk-php/.changes/3.100.3
vendored
Normal file
27
vendor/aws/aws-sdk-php/.changes/3.100.3
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "enhancement",
|
||||||
|
"category": "Api",
|
||||||
|
"description": "Fix json parse error when extracting header"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "ElastiCache",
|
||||||
|
"description": "This release is to add support for reader endpoint for cluster-mode disabled Amazon ElastiCache for Redis clusters."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "GuardDuty",
|
||||||
|
"description": "Support for tagging functionality in Create and Get operations for Detector, IP Set, Threat Intel Set, and Finding Filter resources and 3 new tagging APIs: ListTagsForResource, TagResource, and UntagResource."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "EC2",
|
||||||
|
"description": "G4 instances are Amazon EC2 instances based on NVIDIA T4 GPUs and are designed to provide cost-effective machine learning inference for applications, like image classification, object detection, recommender systems, automated speech recognition, and language translation. G4 instances are also a cost-effective platform for building and running graphics-intensive applications, such as remote graphics workstations, video transcoding, photo-realistic design, and game streaming in the cloud. To get started with G4 instances visit https:\/\/aws.amazon.com\/ec2\/instance-types\/g4."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "AppMesh",
|
||||||
|
"description": "This release adds support for AWS Cloud Map as a service discovery method for virtual nodes."
|
||||||
|
}
|
||||||
|
]
|
||||||
22
vendor/aws/aws-sdk-php/.changes/3.100.4
vendored
Normal file
22
vendor/aws/aws-sdk-php/.changes/3.100.4
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "enhancement",
|
||||||
|
"category": "Personalize",
|
||||||
|
"description": "Documentation updates for Amazon Personalize."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "AppStream",
|
||||||
|
"description": "Added 2 new values(WINDOWS_SERVER_2016, WINDOWS_SERVER_2019) for PlatformType enum."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "EC2",
|
||||||
|
"description": "Correction to enumerations in EC2 client."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "CloudFront",
|
||||||
|
"description": "A new datatype in the CloudFront API, AliasICPRecordal, provides the ICP recordal status for CNAMEs associated with distributions. AWS services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they have added to CloudFront. The status value is returned in the CloudFront response; you cannot configure it yourself. The status is set to APPROVED for all CNAMEs (aliases) in regions outside of China."
|
||||||
|
}
|
||||||
|
]
|
||||||
17
vendor/aws/aws-sdk-php/.changes/3.100.5
vendored
Normal file
17
vendor/aws/aws-sdk-php/.changes/3.100.5
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "RoboMaker",
|
||||||
|
"description": "Add the ServiceUnavailableException (503) into CreateSimulationJob API."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "Neptune",
|
||||||
|
"description": "This release adds a feature to configure Amazon Neptune to publish audit logs to Amazon CloudWatch Logs."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "ServiceCatalog",
|
||||||
|
"description": "Restrict concurrent calls by a single customer account for CreatePortfolioShare and DeletePortfolioShare when sharing\/unsharing to an Organization."
|
||||||
|
}
|
||||||
|
]
|
||||||
12
vendor/aws/aws-sdk-php/.changes/3.100.6
vendored
Normal file
12
vendor/aws/aws-sdk-php/.changes/3.100.6
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "EC2",
|
||||||
|
"description": "You can now launch new 12xlarge, 24xlarge, and metal instance sizes on the Amazon EC2 compute optimized C5 instance types featuring 2nd Gen Intel Xeon Scalable Processors."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "api-change",
|
||||||
|
"category": "ResourceGroupsTaggingAPI",
|
||||||
|
"description": "You can use tag policies to help standardize on tags across your organization's resources."
|
||||||
|
}
|
||||||
|
]
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue