v1.4.3
This commit is contained in:
parent
a80a4aa4f9
commit
5bb4d373fc
187 changed files with 8665 additions and 998 deletions
|
|
@ -1,5 +1,34 @@
|
|||
== Changelog ==
|
||||
|
||||
= 1.4.3 =
|
||||
|
||||
_Release date: 2026-08-24_
|
||||
|
||||
**Added**
|
||||
|
||||
* Manager detection now uses the ecosystem presence constant `ROBOTSTXT_MANAGER_NOTICED` (ROBOTSTXT Manager 1.6.2+); a plugin-list scan remains as fallback for older Manager versions — same method name and return type, no caller changes
|
||||
|
||||
**Changed**
|
||||
|
||||
* Composer dependencies updated: `aws/aws-sdk-php` 3.392.3 → 3.393.4, `guzzlehttp/psr7` 3.0.0 → 3.0.1, `guzzlehttp/promises` 3.0.1 → 3.0.2, PHPStan 2.2.8 → 2.2.9, `johnbillion/wp-compat` 1.5.0 → 2.0.0 (now a PHPStan extension) (no known CVEs)
|
||||
|
||||
**Localization**
|
||||
|
||||
* POT regenerated for 1.4.3 (no string changes); Spanish (es_ES) and Catalan (ca) translations verified — 69/69 strings in both locales
|
||||
|
||||
**Compatibility**
|
||||
|
||||
* WordPress: 5.3 - 7.1 (floor re-verified with wp-compat 2.0: `big_image_size_threshold` filter, WP 5.3; one false positive on `wp_enqueue_script()` positional `$in_footer` argument documented in docs/known-issues.md)
|
||||
* 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: 83 tests, 130 assertions
|
||||
* composer audit: no known CVEs
|
||||
|
||||
= 1.4.2 =
|
||||
|
||||
_Release date: 2026-08-17_
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Plugin URI: https://www.robotstxt.software/plugins/idrivee2-media-upload/
|
||||
* Update URI: https://www.robotstxt.software/plugins/idrivee2-media-upload/
|
||||
* Description: Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.
|
||||
* Version: 1.4.2
|
||||
* Version: 1.4.3
|
||||
* Requires at least: 5.3
|
||||
* Requires PHP: 8.1
|
||||
* Author: ROBOTSTXT
|
||||
|
|
@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
*
|
||||
* @since 1.1.4
|
||||
*/
|
||||
define( 'IDRIVEE2_MEDIA_VERSION', '1.4.2' );
|
||||
define( 'IDRIVEE2_MEDIA_VERSION', '1.4.3' );
|
||||
|
||||
/**
|
||||
* Load Composer autoloader if available.
|
||||
|
|
|
|||
|
|
@ -52,32 +52,34 @@ class Manager_Dependency {
|
|||
/**
|
||||
* 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.
|
||||
* Uses the ecosystem presence constant ROBOTSTXT_MANAGER_NOTICED
|
||||
* (Manager 1.6.2+) and falls back to a plugin-list scan for older
|
||||
* Manager versions.
|
||||
*
|
||||
* @since 1.4.2
|
||||
* @since 1.4.3 Switched to the ecosystem presence constant with a
|
||||
* plugin-list scan fallback for older Manager versions.
|
||||
*
|
||||
* @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/' ) ) {
|
||||
if ( defined( 'ROBOTSTXT_MANAGER_NOTICED' ) && ROBOTSTXT_MANAGER_NOTICED ) {
|
||||
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;
|
||||
if ( ! function_exists( 'get_plugins' ) ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||
}
|
||||
|
||||
foreach ( get_plugins() as $file => $data ) {
|
||||
$slug = dirname( $file );
|
||||
|
||||
if ( '.' === $slug ) {
|
||||
$slug = basename( $file, '.php' );
|
||||
}
|
||||
|
||||
if ( 'robotstxt-manager' === $slug ) {
|
||||
return is_plugin_active( $file );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,12 +1,13 @@
|
|||
# Translation of iDrivee2 Media Upload 1.4.2 in Catalan.
|
||||
# Translation of iDrivee2 Media Upload 1.4.3 in Catalan.
|
||||
# Copyright (C) 2026 ROBOTSTXT
|
||||
# This file is distributed under the GPL-3.0-or-later license.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: iDrivee2 Media Upload 1.4.2\n"
|
||||
"Report-Msgid-Bugs-To: https://www.robotstxt.software/plugins/idrivee2-media-upload/\n"
|
||||
"POT-Creation-Date: 2026-08-17T14:40:00+00:00\n"
|
||||
"Project-Id-Version: iDrivee2 Media Upload 1.4.3\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idrivee2-media-"
|
||||
"upload\n"
|
||||
"POT-Creation-Date: 2026-08-24T10:18:02+00:00\n"
|
||||
"PO-Revision-Date: 2026-08-17T14:45:00+00:00\n"
|
||||
"Last-Translator: ROBOTSTXT <hola@robotstxt.es>\n"
|
||||
"Language-Team: Català <ca@li.org>\n"
|
||||
|
|
@ -19,14 +20,17 @@ msgstr ""
|
|||
"X-Domain: idrivee2-media-upload\n"
|
||||
|
||||
#. Plugin Name of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "iDrivee2 Media Upload"
|
||||
msgstr "iDrivee2 Media Upload"
|
||||
|
||||
#. Plugin URI of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||
msgstr "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||
|
||||
#. Description of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid ""
|
||||
"Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade "
|
||||
"security and logging."
|
||||
|
|
@ -35,228 +39,295 @@ msgstr ""
|
|||
"nivell empresarial i registre."
|
||||
|
||||
#. Author of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "ROBOTSTXT"
|
||||
msgstr "ROBOTSTXT"
|
||||
|
||||
#. Author URI of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "https://www.robotstxt.software/"
|
||||
msgstr "https://www.robotstxt.software/"
|
||||
|
||||
#. translators: Admin menu title.
|
||||
#: includes/class-admin-page.php:109 includes/class-admin-page.php:600
|
||||
msgid "iDrivee2 Media Upload Settings"
|
||||
msgstr "Ajustos d'iDrivee2 Media Upload"
|
||||
|
||||
#. translators: Admin menu label.
|
||||
#: includes/class-admin-page.php:111
|
||||
msgid "iDrivee2"
|
||||
msgstr "iDrivee2"
|
||||
|
||||
#: includes/class-admin-page.php:156 includes/class-admin-page.php:168
|
||||
#: includes/class-admin-page.php:180
|
||||
msgid "You do not have sufficient permissions to access this page."
|
||||
msgstr "No teniu permisos suficients per a accedir a aquesta pàgina."
|
||||
|
||||
#. translators: %d is the number of seconds to wait.
|
||||
#: includes/class-admin-page.php:206
|
||||
#, php-format
|
||||
msgid "Please wait %d seconds before testing again."
|
||||
msgstr "Espereu %d segons abans de tornar a provar-ho."
|
||||
|
||||
#: includes/class-admin-page.php:222
|
||||
msgid "Configuration is incomplete. Please check your settings."
|
||||
msgstr "La configuració és incompleta. Comproveu els ajustos."
|
||||
|
||||
#: includes/class-admin-page.php:243
|
||||
msgid "Connection successful! Your S3 configuration is working correctly."
|
||||
msgstr "S'ha connectat correctament! La configuració S3 funciona correctament."
|
||||
|
||||
#. translators: %s is the error message from AWS.
|
||||
#: includes/class-admin-page.php:256 includes/class-admin-page.php:362
|
||||
#: includes/class-admin-page.php:472
|
||||
#, php-format
|
||||
msgid "AWS Error: %s"
|
||||
msgstr "Error d'AWS: %s"
|
||||
|
||||
#: includes/class-admin-page.php:257 includes/class-admin-page.php:363
|
||||
#: includes/class-admin-page.php:473
|
||||
msgid "Unknown error"
|
||||
msgstr "Error desconegut"
|
||||
|
||||
#. translators: %s is the error message.
|
||||
#: includes/class-admin-page.php:271 includes/class-admin-page.php:377
|
||||
#: includes/class-admin-page.php:487
|
||||
#, php-format
|
||||
msgid "Error: %s"
|
||||
msgstr "Error: %s"
|
||||
|
||||
#. translators: %d is the number of seconds to wait.
|
||||
#: includes/class-admin-page.php:300
|
||||
#, php-format
|
||||
msgid "Please wait %d seconds before uploading again."
|
||||
msgstr "Espereu %d segons abans de tornar a pujar-ne."
|
||||
|
||||
#: includes/class-admin-page.php:346
|
||||
msgid "File uploaded successfully!"
|
||||
msgstr "S'ha pujat el fitxer correctament!"
|
||||
|
||||
#: includes/class-admin-page.php:427
|
||||
msgid "Invalid test file name format."
|
||||
msgstr "El format del nom del fitxer de prova no és vàlid."
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#: includes/class-admin-page.php:456
|
||||
#, php-format
|
||||
msgid "File %s deleted successfully."
|
||||
msgstr "S'ha eliminat el fitxer %s correctament."
|
||||
|
||||
#: includes/class-admin-page.php:518
|
||||
msgid "Host URL must start with \"https://\"."
|
||||
msgstr "La URL de l'amfitrió ha de començar per «https://»."
|
||||
|
||||
#: 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."
|
||||
"Some settings are defined in wp-config.php and cannot be changed here. These "
|
||||
"fields are shown as read-only."
|
||||
msgstr ""
|
||||
"Alguns ajustos estan definits a wp-config.php i no es poden canviar aquí. "
|
||||
"Aquests camps es mostren com a només de lectura."
|
||||
|
||||
#: includes/class-admin-page.php:619
|
||||
msgid "S3 Host"
|
||||
msgstr "Amfitrió d'S3"
|
||||
|
||||
#: includes/class-admin-page.php:634
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
|
||||
#: includes/class-admin-page.php:636
|
||||
msgid "S3-compatible endpoint URL. Must start with \"https://\"."
|
||||
msgstr "URL de l'endpoint compatible amb S3. Ha de començar per «https://»."
|
||||
|
||||
#: includes/class-admin-page.php:645
|
||||
msgid "Access Key ID"
|
||||
msgstr "ID de la clau d'accés"
|
||||
|
||||
#: includes/class-admin-page.php:660
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
|
||||
#: includes/class-admin-page.php:662
|
||||
msgid "Your S3 access key ID."
|
||||
msgstr "L'ID de la clau d'accés d'S3."
|
||||
|
||||
#: includes/class-admin-page.php:671
|
||||
msgid "Secret Access Key"
|
||||
msgstr "Clau d'accés secreta"
|
||||
|
||||
#: includes/class-admin-page.php:686
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
|
||||
#: includes/class-admin-page.php:688
|
||||
msgid "Your S3 secret access key."
|
||||
msgstr "La clau d'accés secreta d'S3."
|
||||
|
||||
#: includes/class-admin-page.php:697
|
||||
msgid "Bucket Name"
|
||||
msgstr "Nom del dipòsit"
|
||||
|
||||
#: includes/class-admin-page.php:712
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
|
||||
#: includes/class-admin-page.php:714
|
||||
msgid "The name of your S3 bucket."
|
||||
msgstr "El nom del dipòsit S3."
|
||||
|
||||
#: includes/class-admin-page.php:723
|
||||
msgid "Region"
|
||||
msgstr "Regió"
|
||||
|
||||
#: includes/class-admin-page.php:739
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
|
||||
#: includes/class-admin-page.php:741
|
||||
msgid "AWS region (e.g., us-east-1, eu-west-1)."
|
||||
msgstr "Regió d'AWS (per exemple, us-east-1, eu-west-1)."
|
||||
|
||||
#: includes/class-admin-page.php:750
|
||||
msgid "Custom CDN Domain"
|
||||
msgstr "Domini CDN personalitzat"
|
||||
|
||||
#: includes/class-admin-page.php:765
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
|
||||
#: includes/class-admin-page.php:767
|
||||
msgid "Optional: Custom domain for serving media files."
|
||||
msgstr "Opcional: domini personalitzat per a servir fitxers multimèdia."
|
||||
|
||||
#: includes/class-admin-page.php:776
|
||||
msgid "Image Sub-sizes"
|
||||
msgstr "Submides de la imatge"
|
||||
|
||||
#: includes/class-admin-page.php:786
|
||||
msgid "All registered sizes (WordPress default)"
|
||||
msgstr "Totes les mides registrades (predeterminat del WordPress)"
|
||||
|
||||
#: includes/class-admin-page.php:787
|
||||
msgid "Only thumbnail (faster uploads)"
|
||||
msgstr "Només la miniatura (pujades més ràpides)"
|
||||
|
||||
#: includes/class-admin-page.php:788
|
||||
msgid "No sub-sizes (original only)"
|
||||
msgstr "Sense submides (només l'original)"
|
||||
|
||||
#: includes/class-admin-page.php:813
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
|
||||
#: 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."
|
||||
msgstr ""
|
||||
"Redueix la feina per a pujades grans (per exemple, fitxers de càmera). "
|
||||
"També desactiva la derivada -scaled en els modes miniatura i cap."
|
||||
"Redueix la feina per a pujades grans (per exemple, fitxers de càmera). També "
|
||||
"desactiva la derivada -scaled en els modes miniatura i cap."
|
||||
|
||||
#: includes/class-admin-page.php:823
|
||||
msgid "Data Cleanup"
|
||||
msgstr "Neteja de dades"
|
||||
|
||||
#: includes/class-admin-page.php:833
|
||||
msgid "Delete all plugin data when the plugin is uninstalled"
|
||||
msgstr "Elimina totes les dades del plugin en desinstal·lar-lo"
|
||||
|
||||
#: includes/class-admin-page.php:836
|
||||
msgid ""
|
||||
"By default, all data is preserved when the plugin is uninstalled. Check "
|
||||
"this to remove settings, statistics, and post meta on uninstall."
|
||||
"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."
|
||||
"Marqueu aquesta casella per a eliminar els ajustos, les estadístiques i les "
|
||||
"metadades en desinstal·lar."
|
||||
|
||||
#: includes/class-admin-page.php:845
|
||||
msgid ""
|
||||
"To modify settings defined in wp-config.php, please edit your wp-config.php "
|
||||
"file directly."
|
||||
msgstr ""
|
||||
"Per a modificar els ajustos definits a wp-config.php, editeu directament "
|
||||
"el fitxer wp-config.php."
|
||||
"Per a modificar els ajustos definits a wp-config.php, editeu directament el "
|
||||
"fitxer wp-config.php."
|
||||
|
||||
#: includes/class-admin-page.php:848
|
||||
msgid "Save Settings"
|
||||
msgstr "Desa els ajustos"
|
||||
|
||||
#: includes/class-admin-page.php:854 includes/class-admin-page.php:905
|
||||
msgid "Test Connection"
|
||||
msgstr "Prova la connexió"
|
||||
|
||||
#: includes/class-admin-page.php:856
|
||||
msgid "Test your S3 configuration to ensure everything is working correctly."
|
||||
msgstr "Proveu la configuració S3 per a assegurar-vos que tot funciona correctament."
|
||||
msgstr ""
|
||||
"Proveu la configuració S3 per a assegurar-vos que tot funciona correctament."
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#: includes/class-admin-page.php:878
|
||||
#, php-format
|
||||
msgid "File: %s"
|
||||
msgstr "Fitxer: %s"
|
||||
|
||||
#: includes/class-admin-page.php:884
|
||||
msgid "URL:"
|
||||
msgstr "URL:"
|
||||
|
||||
#: includes/class-admin-page.php:893
|
||||
msgid "Delete this file"
|
||||
msgstr "Elimina aquest fitxer"
|
||||
|
||||
#: includes/class-admin-page.php:910
|
||||
msgid "Test S3 Connection"
|
||||
msgstr "Prova la connexió S3"
|
||||
|
||||
msgid "Verify that your S3 bucket is accessible with the configured credentials."
|
||||
msgstr "Verifiqueu que el dipòsit S3 és accessible amb les credencials configurades."
|
||||
#: includes/class-admin-page.php:913
|
||||
msgid ""
|
||||
"Verify that your S3 bucket is accessible with the configured credentials."
|
||||
msgstr ""
|
||||
"Verifiqueu que el dipòsit S3 és accessible amb les credencials configurades."
|
||||
|
||||
#: includes/class-admin-page.php:919 includes/class-admin-page.php:924
|
||||
msgid "Upload Test File"
|
||||
msgstr "Puja un fitxer de prova"
|
||||
|
||||
#: 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."
|
||||
msgstr ""
|
||||
"Puja un fitxer de prova a S3 amb un nom amb marca temporal "
|
||||
"(test-YYYYMMDDHHMMSS.txt). El fitxer romandrà a S3 fins que s'elimini "
|
||||
"manualment."
|
||||
"Puja un fitxer de prova a S3 amb un nom amb marca temporal (test-"
|
||||
"YYYYMMDDHHMMSS.txt). El fitxer romandrà a S3 fins que s'elimini manualment."
|
||||
|
||||
#: includes/class-cli.php:83
|
||||
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."
|
||||
"El plugin no està configurat. Definiu les credencials S3 a wp-config.php o a "
|
||||
"Ajustos → iDrivee2."
|
||||
|
||||
#: includes/class-cli.php:86
|
||||
msgid "Testing connection to bucket:"
|
||||
msgstr "S'està provant la connexió amb el dipòsit:"
|
||||
|
||||
#: includes/class-cli.php:91
|
||||
msgid "Connection successful — bucket is accessible."
|
||||
msgstr "S'ha connectat correctament: el dipòsit és accessible."
|
||||
|
||||
#: includes/class-cli.php:93
|
||||
msgid "AWS error:"
|
||||
msgstr "Error d'AWS:"
|
||||
|
||||
#: includes/class-cli.php:95
|
||||
msgid "Connection failed:"
|
||||
msgstr "La connexió ha fallat:"
|
||||
|
||||
#. 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."
|
||||
|
|
@ -264,19 +335,24 @@ 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.
|
||||
#: includes/class-cli.php:135
|
||||
#, 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."
|
||||
msgstr ""
|
||||
"Neteja completada: no hi ha fitxers per a eliminar, en queden %d a la cua."
|
||||
|
||||
#: includes/class-cli.php:167
|
||||
msgid "No S3 operations recorded."
|
||||
msgstr "No hi ha operacions de S3 registrades."
|
||||
|
||||
#. translators: %d: number of days.
|
||||
#: includes/class-cli.php:172
|
||||
#, php-format
|
||||
msgid "S3 operations (last %d days):"
|
||||
msgstr "Operacions de S3 (últims %d dies):"
|
||||
|
||||
#. translators: %s: link to the ROBOTSTXT Manager plugin page.
|
||||
#: includes/class-manager-dependency.php:146
|
||||
#, php-format
|
||||
msgid ""
|
||||
"To receive plugin updates, the ROBOTSTXT Manager plugin must be installed "
|
||||
|
|
@ -285,5 +361,6 @@ msgstr ""
|
|||
"Per a rebre actualitzacions del plugin, el plugin ROBOTSTXT Manager ha "
|
||||
"d'estar instal·lat i actiu. Baixeu-lo des de %s."
|
||||
|
||||
#: includes/class-plugin.php:179
|
||||
msgid "Every 5 Minutes"
|
||||
msgstr "Cada 5 minuts"
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,12 +1,13 @@
|
|||
# Translation of iDrivee2 Media Upload 1.4.2 in Spanish (Spain).
|
||||
# Translation of iDrivee2 Media Upload 1.4.3 in Spanish (Spain).
|
||||
# Copyright (C) 2026 ROBOTSTXT
|
||||
# This file is distributed under the GPL-3.0-or-later license.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: iDrivee2 Media Upload 1.4.2\n"
|
||||
"Report-Msgid-Bugs-To: https://www.robotstxt.software/plugins/idrivee2-media-upload/\n"
|
||||
"POT-Creation-Date: 2026-08-17T14:40:00+00:00\n"
|
||||
"Project-Id-Version: iDrivee2 Media Upload 1.4.3\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idrivee2-media-"
|
||||
"upload\n"
|
||||
"POT-Creation-Date: 2026-08-24T10:18:02+00:00\n"
|
||||
"PO-Revision-Date: 2026-08-17T14:45:00+00:00\n"
|
||||
"Last-Translator: ROBOTSTXT <hola@robotstxt.es>\n"
|
||||
"Language-Team: Español (España) <es@li.org>\n"
|
||||
|
|
@ -19,14 +20,17 @@ msgstr ""
|
|||
"X-Domain: idrivee2-media-upload\n"
|
||||
|
||||
#. Plugin Name of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "iDrivee2 Media Upload"
|
||||
msgstr "iDrivee2 Media Upload"
|
||||
|
||||
#. Plugin URI of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||
msgstr "https://www.robotstxt.software/plugins/idrivee2-media-upload/"
|
||||
|
||||
#. Description of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid ""
|
||||
"Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade "
|
||||
"security and logging."
|
||||
|
|
@ -35,143 +39,188 @@ msgstr ""
|
|||
"nivel empresarial y registro."
|
||||
|
||||
#. Author of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "ROBOTSTXT"
|
||||
msgstr "ROBOTSTXT"
|
||||
|
||||
#. Author URI of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "https://www.robotstxt.software/"
|
||||
msgstr "https://www.robotstxt.software/"
|
||||
|
||||
#. translators: Admin menu title.
|
||||
#: includes/class-admin-page.php:109 includes/class-admin-page.php:600
|
||||
msgid "iDrivee2 Media Upload Settings"
|
||||
msgstr "Ajustes de iDrivee2 Media Upload"
|
||||
|
||||
#. translators: Admin menu label.
|
||||
#: includes/class-admin-page.php:111
|
||||
msgid "iDrivee2"
|
||||
msgstr "iDrivee2"
|
||||
|
||||
#: includes/class-admin-page.php:156 includes/class-admin-page.php:168
|
||||
#: includes/class-admin-page.php:180
|
||||
msgid "You do not have sufficient permissions to access this page."
|
||||
msgstr "No tienes permisos suficientes para acceder a esta página."
|
||||
|
||||
#. translators: %d is the number of seconds to wait.
|
||||
#: includes/class-admin-page.php:206
|
||||
#, php-format
|
||||
msgid "Please wait %d seconds before testing again."
|
||||
msgstr "Espera %d segundos antes de volver a probar."
|
||||
|
||||
#: includes/class-admin-page.php:222
|
||||
msgid "Configuration is incomplete. Please check your settings."
|
||||
msgstr "La configuración está incompleta. Revisa tus ajustes."
|
||||
|
||||
#: includes/class-admin-page.php:243
|
||||
msgid "Connection successful! Your S3 configuration is working correctly."
|
||||
msgstr "¡Conexión correcta! Tu configuración S3 funciona correctamente."
|
||||
|
||||
#. translators: %s is the error message from AWS.
|
||||
#: includes/class-admin-page.php:256 includes/class-admin-page.php:362
|
||||
#: includes/class-admin-page.php:472
|
||||
#, php-format
|
||||
msgid "AWS Error: %s"
|
||||
msgstr "Error de AWS: %s"
|
||||
|
||||
#: includes/class-admin-page.php:257 includes/class-admin-page.php:363
|
||||
#: includes/class-admin-page.php:473
|
||||
msgid "Unknown error"
|
||||
msgstr "Error desconocido"
|
||||
|
||||
#. translators: %s is the error message.
|
||||
#: includes/class-admin-page.php:271 includes/class-admin-page.php:377
|
||||
#: includes/class-admin-page.php:487
|
||||
#, php-format
|
||||
msgid "Error: %s"
|
||||
msgstr "Error: %s"
|
||||
|
||||
#. translators: %d is the number of seconds to wait.
|
||||
#: includes/class-admin-page.php:300
|
||||
#, php-format
|
||||
msgid "Please wait %d seconds before uploading again."
|
||||
msgstr "Espera %d segundos antes de volver a subir."
|
||||
|
||||
#: includes/class-admin-page.php:346
|
||||
msgid "File uploaded successfully!"
|
||||
msgstr "¡Archivo subido correctamente!"
|
||||
|
||||
#: includes/class-admin-page.php:427
|
||||
msgid "Invalid test file name format."
|
||||
msgstr "Formato de nombre de archivo de prueba no válido."
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#: includes/class-admin-page.php:456
|
||||
#, php-format
|
||||
msgid "File %s deleted successfully."
|
||||
msgstr "Archivo %s eliminado correctamente."
|
||||
|
||||
#: includes/class-admin-page.php:518
|
||||
msgid "Host URL must start with \"https://\"."
|
||||
msgstr "La URL del host debe empezar por «https://»."
|
||||
|
||||
#: 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."
|
||||
"Some settings are defined in wp-config.php and cannot be changed here. These "
|
||||
"fields are shown as read-only."
|
||||
msgstr ""
|
||||
"Algunos ajustes están definidos en wp-config.php y no se pueden cambiar "
|
||||
"aquí. Estos campos se muestran como solo lectura."
|
||||
|
||||
#: includes/class-admin-page.php:619
|
||||
msgid "S3 Host"
|
||||
msgstr "Host de S3"
|
||||
|
||||
#: includes/class-admin-page.php:634
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
|
||||
#: includes/class-admin-page.php:636
|
||||
msgid "S3-compatible endpoint URL. Must start with \"https://\"."
|
||||
msgstr "URL del endpoint compatible con S3. Debe empezar por «https://»."
|
||||
|
||||
#: includes/class-admin-page.php:645
|
||||
msgid "Access Key ID"
|
||||
msgstr "ID de la clave de acceso"
|
||||
|
||||
#: includes/class-admin-page.php:660
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
|
||||
#: includes/class-admin-page.php:662
|
||||
msgid "Your S3 access key ID."
|
||||
msgstr "El ID de tu clave de acceso de S3."
|
||||
|
||||
#: includes/class-admin-page.php:671
|
||||
msgid "Secret Access Key"
|
||||
msgstr "Clave de acceso secreta"
|
||||
|
||||
#: includes/class-admin-page.php:686
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
|
||||
#: includes/class-admin-page.php:688
|
||||
msgid "Your S3 secret access key."
|
||||
msgstr "Tu clave de acceso secreta de S3."
|
||||
|
||||
#: includes/class-admin-page.php:697
|
||||
msgid "Bucket Name"
|
||||
msgstr "Nombre del depósito"
|
||||
|
||||
#: includes/class-admin-page.php:712
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
|
||||
#: includes/class-admin-page.php:714
|
||||
msgid "The name of your S3 bucket."
|
||||
msgstr "El nombre de tu depósito S3."
|
||||
|
||||
#: includes/class-admin-page.php:723
|
||||
msgid "Region"
|
||||
msgstr "Región"
|
||||
|
||||
#: includes/class-admin-page.php:739
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
|
||||
#: includes/class-admin-page.php:741
|
||||
msgid "AWS region (e.g., us-east-1, eu-west-1)."
|
||||
msgstr "Región de AWS (por ejemplo, us-east-1, eu-west-1)."
|
||||
|
||||
#: includes/class-admin-page.php:750
|
||||
msgid "Custom CDN Domain"
|
||||
msgstr "Dominio CDN personalizado"
|
||||
|
||||
#: includes/class-admin-page.php:765
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
|
||||
#: includes/class-admin-page.php:767
|
||||
msgid "Optional: Custom domain for serving media files."
|
||||
msgstr "Opcional: dominio personalizado para servir archivos multimedia."
|
||||
|
||||
#: includes/class-admin-page.php:776
|
||||
msgid "Image Sub-sizes"
|
||||
msgstr "Subtamaños de imagen"
|
||||
|
||||
#: includes/class-admin-page.php:786
|
||||
msgid "All registered sizes (WordPress default)"
|
||||
msgstr "Todos los tamaños registrados (predeterminado de WordPress)"
|
||||
|
||||
#: includes/class-admin-page.php:787
|
||||
msgid "Only thumbnail (faster uploads)"
|
||||
msgstr "Solo miniatura (subidas más rápidas)"
|
||||
|
||||
#: includes/class-admin-page.php:788
|
||||
msgid "No sub-sizes (original only)"
|
||||
msgstr "Sin subtamaños (solo el original)"
|
||||
|
||||
#: includes/class-admin-page.php:813
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
|
||||
#: 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."
|
||||
|
|
@ -179,84 +228,109 @@ msgstr ""
|
|||
"Reduce el trabajo en subidas grandes (por ejemplo, archivos de cámara). "
|
||||
"También desactiva la derivada -scaled en los modos miniatura y ninguno."
|
||||
|
||||
#: includes/class-admin-page.php:823
|
||||
msgid "Data Cleanup"
|
||||
msgstr "Limpieza de datos"
|
||||
|
||||
#: includes/class-admin-page.php:833
|
||||
msgid "Delete all plugin data when the plugin is uninstalled"
|
||||
msgstr "Eliminar todos los datos del plugin al desinstalarlo"
|
||||
|
||||
#: includes/class-admin-page.php:836
|
||||
msgid ""
|
||||
"By default, all data is preserved when the plugin is uninstalled. Check "
|
||||
"this to remove settings, statistics, and post meta on uninstall."
|
||||
"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."
|
||||
|
||||
#: includes/class-admin-page.php:845
|
||||
msgid ""
|
||||
"To modify settings defined in wp-config.php, please edit your wp-config.php "
|
||||
"file directly."
|
||||
msgstr ""
|
||||
"Para modificar los ajustes definidos en wp-config.php, edita el archivo "
|
||||
"wp-config.php directamente."
|
||||
"Para modificar los ajustes definidos en wp-config.php, edita el archivo wp-"
|
||||
"config.php directamente."
|
||||
|
||||
#: includes/class-admin-page.php:848
|
||||
msgid "Save Settings"
|
||||
msgstr "Guardar ajustes"
|
||||
|
||||
#: includes/class-admin-page.php:854 includes/class-admin-page.php:905
|
||||
msgid "Test Connection"
|
||||
msgstr "Probar conexión"
|
||||
|
||||
#: includes/class-admin-page.php:856
|
||||
msgid "Test your S3 configuration to ensure everything is working correctly."
|
||||
msgstr "Prueba tu configuración S3 para asegurarte de que todo funciona correctamente."
|
||||
msgstr ""
|
||||
"Prueba tu configuración S3 para asegurarte de que todo funciona "
|
||||
"correctamente."
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#: includes/class-admin-page.php:878
|
||||
#, php-format
|
||||
msgid "File: %s"
|
||||
msgstr "Archivo: %s"
|
||||
|
||||
#: includes/class-admin-page.php:884
|
||||
msgid "URL:"
|
||||
msgstr "URL:"
|
||||
|
||||
#: includes/class-admin-page.php:893
|
||||
msgid "Delete this file"
|
||||
msgstr "Eliminar este archivo"
|
||||
|
||||
#: includes/class-admin-page.php:910
|
||||
msgid "Test S3 Connection"
|
||||
msgstr "Probar conexión S3"
|
||||
|
||||
msgid "Verify that your S3 bucket is accessible with the configured credentials."
|
||||
msgstr "Verifica que se puede acceder a tu depósito S3 con las credenciales configuradas."
|
||||
#: includes/class-admin-page.php:913
|
||||
msgid ""
|
||||
"Verify that your S3 bucket is accessible with the configured credentials."
|
||||
msgstr ""
|
||||
"Verifica que se puede acceder a tu depósito S3 con las credenciales "
|
||||
"configuradas."
|
||||
|
||||
#: includes/class-admin-page.php:919 includes/class-admin-page.php:924
|
||||
msgid "Upload Test File"
|
||||
msgstr "Subir archivo de prueba"
|
||||
|
||||
#: 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."
|
||||
msgstr ""
|
||||
"Sube un archivo de prueba a S3 con un nombre con marca temporal "
|
||||
"(test-YYYYMMDDHHMMSS.txt). El archivo permanecerá en S3 hasta que se "
|
||||
"elimine manualmente."
|
||||
"Sube un archivo de prueba a S3 con un nombre con marca temporal (test-"
|
||||
"YYYYMMDDHHMMSS.txt). El archivo permanecerá en S3 hasta que se elimine "
|
||||
"manualmente."
|
||||
|
||||
#: includes/class-cli.php:83
|
||||
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."
|
||||
"El plugin no está configurado. Define las credenciales S3 en wp-config.php o "
|
||||
"en Ajustes → iDrivee2."
|
||||
|
||||
#: includes/class-cli.php:86
|
||||
msgid "Testing connection to bucket:"
|
||||
msgstr "Probando la conexión con el depósito:"
|
||||
|
||||
#: includes/class-cli.php:91
|
||||
msgid "Connection successful — bucket is accessible."
|
||||
msgstr "Conexión correcta: se puede acceder al depósito."
|
||||
|
||||
#: includes/class-cli.php:93
|
||||
msgid "AWS error:"
|
||||
msgstr "Error de AWS:"
|
||||
|
||||
#: includes/class-cli.php:95
|
||||
msgid "Connection failed:"
|
||||
msgstr "La conexión ha fallado:"
|
||||
|
||||
#. 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."
|
||||
|
|
@ -264,19 +338,24 @@ 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.
|
||||
#: includes/class-cli.php:135
|
||||
#, 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."
|
||||
msgstr ""
|
||||
"Limpieza completada: no hay archivos que eliminar, quedan %d en la cola."
|
||||
|
||||
#: includes/class-cli.php:167
|
||||
msgid "No S3 operations recorded."
|
||||
msgstr "No hay operaciones de S3 registradas."
|
||||
|
||||
#. translators: %d: number of days.
|
||||
#: includes/class-cli.php:172
|
||||
#, 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.
|
||||
#: includes/class-manager-dependency.php:146
|
||||
#, php-format
|
||||
msgid ""
|
||||
"To receive plugin updates, the ROBOTSTXT Manager plugin must be installed "
|
||||
|
|
@ -285,5 +364,6 @@ msgstr ""
|
|||
"Para recibir actualizaciones del plugin, el plugin ROBOTSTXT Manager debe "
|
||||
"estar instalado y activo. Descárgalo desde %s."
|
||||
|
||||
#: includes/class-plugin.php:179
|
||||
msgid "Every 5 Minutes"
|
||||
msgstr "Cada 5 minutos"
|
||||
|
|
|
|||
|
|
@ -2,16 +2,16 @@
|
|||
# This file is distributed under the GPL-3.0-or-later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: iDrivee2 Media Upload 1.4.2\n"
|
||||
"Report-Msgid-Bugs-To: https://www.robotstxt.software/plugins/idrivee2-media-upload/\n"
|
||||
"Project-Id-Version: iDrivee2 Media Upload 1.4.3\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idrivee2-media-upload\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"POT-Creation-Date: 2026-08-17T14:40:00+00:00\n"
|
||||
"POT-Creation-Date: 2026-08-24T10:18:02+00:00\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"X-Generator: gettext 0.22\n"
|
||||
"X-Generator: WP-CLI 2.12.0\n"
|
||||
"X-Domain: idrivee2-media-upload\n"
|
||||
|
||||
#. Plugin Name of the plugin
|
||||
|
|
@ -321,7 +321,7 @@ msgid "S3 operations (last %d days):"
|
|||
msgstr ""
|
||||
|
||||
#. translators: %s: link to the ROBOTSTXT Manager plugin page.
|
||||
#: includes/class-manager-dependency.php:144
|
||||
#: includes/class-manager-dependency.php:146
|
||||
#, php-format
|
||||
msgid "To receive plugin updates, the ROBOTSTXT Manager plugin must be installed and active. Download it from %s."
|
||||
msgstr ""
|
||||
|
|
|
|||
67
readme.txt
67
readme.txt
|
|
@ -3,9 +3,9 @@ Contributors: robotstxt, javiercasares
|
|||
Tags: media, upload, s3, cdn, storage, idrivee2, cloud
|
||||
Requires at least: 5.3
|
||||
Tested up to: 7.1
|
||||
Stable tag: 1.4.2
|
||||
Stable tag: 1.4.3
|
||||
Requires PHP: 8.1
|
||||
Version: 1.4.2
|
||||
Version: 1.4.3
|
||||
License: GPL-3.0-or-later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
|
|
@ -215,6 +215,34 @@ Updates are delivered through the [ROBOTSTXT Manager](https://www.robotstxt.soft
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.4.3 =
|
||||
|
||||
_Release date: 2026-08-24_
|
||||
|
||||
**Added**
|
||||
|
||||
* Manager detection via the ecosystem presence constant `ROBOTSTXT_MANAGER_NOTICED` (ROBOTSTXT Manager 1.6.2+), with a plugin-list scan fallback for older Manager versions
|
||||
|
||||
**Changed**
|
||||
|
||||
* Composer dependencies updated (aws-sdk-php 3.393.4, guzzle 3.x, no known CVEs)
|
||||
|
||||
**Localization**
|
||||
|
||||
* POT regenerated for 1.4.3; Spanish (es_ES) and Catalan (ca) translations verified — 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: 83 tests, 130 assertions
|
||||
|
||||
= 1.4.2 =
|
||||
|
||||
_Release date: 2026-08-17_
|
||||
|
|
@ -289,41 +317,6 @@ _Release date: 2026-08-10_
|
|||
* PHPStan: Level 9, 0 errors
|
||||
* PHPUnit: 66 tests, 109 assertions, 100% coverage
|
||||
|
||||
= 1.3.0 =
|
||||
|
||||
_Release date: 2026-07-18_
|
||||
|
||||
**Highlights**
|
||||
|
||||
* New image sub-sizes control — ship less data per upload, ideal for large camera files. Reduces work in both the WP 7.1 client-side path (browser) and the traditional server-side path.
|
||||
|
||||
**Added**
|
||||
|
||||
* Settings field **Image Sub-sizes** under Settings → iDrivee2 with three modes: `all` (default), `thumbnail` (only the default thumbnail), `none` (no sub-sizes).
|
||||
* `IDRIVEE2_MEDIA_SUBSIZES_MODE` wp-config.php constant — same priority pattern as the S3 credentials; the field becomes read-only when set.
|
||||
* In `thumbnail` and `none` modes the `big_image_size_threshold` filter is also disabled, so WordPress no longer creates a `-scaled` derivative for images larger than 2560px. (Requires WordPress 5.3+ for the scaled-disabling; on older WP the mode still applies via `intermediate_image_sizes`.)
|
||||
|
||||
**Security**
|
||||
|
||||
* `composer audit` CVEs resolved: `guzzlehttp/guzzle` 7.11 → 7.15, `guzzlehttp/psr7` 2.11 → 2.13, `mtdowling/jmespath.php` 2.8 → 2.9 (CVE-2026-55767 / 55568 / 55766 / 54133).
|
||||
|
||||
**Tooling**
|
||||
|
||||
* `bin/preflight.sh` added — automated pre-deploy verification per AGENTS-testing-build-deployment.md (PHPCS, PHPStan, PHPCompatibility, PHPUnit + coverage, composer audit, candidate ZIP inspection).
|
||||
* `.claude/settings.json` added — mechanical deny rules for `deploy.sh`, `git push/tag/merge` per AGENTS.md.
|
||||
|
||||
**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: 38 tests, 60 assertions
|
||||
|
||||
= Previous versions =
|
||||
|
||||
If you want to see the full changelog, visit the [plugin page](https://www.robotstxt.software/plugins/idrivee2-media-upload/).
|
||||
|
|
|
|||
27
update.json
27
update.json
|
|
@ -1,27 +0,0 @@
|
|||
{
|
||||
"name": "iDrivee2 Media Upload",
|
||||
"slug": "idrivee2-media-upload",
|
||||
"version": "1.4.2",
|
||||
"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_php": "8.1",
|
||||
"tested": "7.1",
|
||||
"last_updated": "2026-08-17",
|
||||
"author": "ROBOTSTXT",
|
||||
"author_profile": "https://www.robotstxt.software/",
|
||||
"homepage": "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload",
|
||||
"description": "Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.",
|
||||
"changelog": "",
|
||||
"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.",
|
||||
"changelog": ""
|
||||
},
|
||||
"banners": {
|
||||
"low": "",
|
||||
"high": ""
|
||||
},
|
||||
"icons": {
|
||||
"1x": "",
|
||||
"2x": ""
|
||||
}
|
||||
}
|
||||
37
vendor/aws/aws-sdk-php/.changes/3.393.0
vendored
Normal file
37
vendor/aws/aws-sdk-php/.changes/3.393.0
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
[
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "GeoMaps",
|
||||
"description": "Amazon Location Service now supports POI density and category filtering on dynamic maps. The GetStyleDescriptor API adds two optional parameters. PoiDensity (Off to VeryDense) controls POI volume, and PoiCategories filters by up to nine categories. Available on HERE and Grab map styles."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Connect",
|
||||
"description": "This release adds new APIs to create, describe, update, delete, and list extraction definitions, enabling customers to manage lifecycle of extraction definition resources. Additionally, this release adds new event sources for Rules related to ACW and new action to Extract Information."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "BedrockAgentCoreControl",
|
||||
"description": "Adds implementations of third-party evaluators, both managed-as-a-service and as templates within custom evaluators."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "drs",
|
||||
"description": "AWS Elastic Disaster Recovery (AWS DRS) now offers Recovery Plans to recover multi-server applications in the right order in one action. Define the launch sequence once, with ordered steps and wait times, and DRS runs it automatically. Validate with non-disruptive drills and monitor in real time."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "ECR",
|
||||
"description": "Documentation update for the ECR PutReplicationConfiguration API to increase the replication rule limit from 10 to 25"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "BedrockAgentRuntime",
|
||||
"description": "AgenticRetrieveStream API now supports Amazon Bedrock AgentCore Memory. Use the new memoryConfiguration parameter to continue a session from short-term memory and retrieve from long-term memory."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Organizations",
|
||||
"description": "Add new Transfer Responsibility error codes and document related CloudTrail events for accepting and terminating a Transfer Responsibility."
|
||||
}
|
||||
]
|
||||
37
vendor/aws/aws-sdk-php/.changes/3.393.1
vendored
Normal file
37
vendor/aws/aws-sdk-php/.changes/3.393.1
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
[
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "MediaLive",
|
||||
"description": "AWS Elemental MediaLive now supports SCTE-35 marker passthrough without IDR frame insertion for CMAF Ingest, MediaPackage V2, and transport stream outputs."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "MarketplaceCatalog",
|
||||
"description": "Introducing two new APIs, DescribeAssessment and ListAssessments. These APIs expose validation issues on Marketplace resources. The validation issues are exposed via a newly created resource called Assessment."
|
||||
},
|
||||
{
|
||||
"type": "enhancement",
|
||||
"category": "Batch",
|
||||
"description": "Update AWS Batch documentation with newer Fargate Supported configurations, notes, and fix broken Docker link re-directs."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "WorkSpaces",
|
||||
"description": "Amazon WorkSpaces now supports nested virtualization, allowing you to run hypervisors and virtualization-based workloads within your WorkSpaces. You can enable or disable nested virtualization when creating a WorkSpace or by modifying an existing WorkSpace's properties."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Outposts",
|
||||
"description": "AWS Outposts now supports VPC Endpoint configuration in CreatePrivateConnectivityConfig, enabling scoped private connectivity with provisioning role creation for secure outpost installations"
|
||||
},
|
||||
{
|
||||
"type": "enhancement",
|
||||
"category": "EC2",
|
||||
"description": "Doc release for CreateImage support for instances with local snapshots in Outpost"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "EntityResolution",
|
||||
"description": "Added ResourceNotFoundException to DeleteSchemaMapping, DeleteMatchingWorkflow, DeleteIdMappingWorkflow, and DeleteIdNamespace. These operations now return a 404 ResourceNotFoundException (previously a 200 Success) when the target resource does not exist."
|
||||
}
|
||||
]
|
||||
47
vendor/aws/aws-sdk-php/.changes/3.393.2
vendored
Normal file
47
vendor/aws/aws-sdk-php/.changes/3.393.2
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "RedshiftServerless",
|
||||
"description": "Amazon Redshift Enhanced System Table Retention that allows customers to store their system table data directly in S3 Tables in customer's account instead of Redshift Managed Storage"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "VPCLattice",
|
||||
"description": "Amazon VPC Lattice now supports modification of private DNS options on Service Network VPC Associations"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "AccountAccess",
|
||||
"description": "Adds throttling exceptions to operation outputs that were previously inconsistent with other operations."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "MediaLive",
|
||||
"description": "AWS Elemental MediaLive now supports video cropping and output positioning. Use cropRectangle and outputPositionRectangle to position the encoded video within the output frame, with the surrounding area filled with black."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "BedrockAgentCore",
|
||||
"description": "AgentCore Memory now supports Flexible Namespaces and Non-Conversational Payloads in CreateEvent API"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Redshift",
|
||||
"description": "Amazon Redshift enhanced System Table retention that allows customers to store their system table data directly in S3 Tables in customer's account instead of Redshift Managed Storage"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Batch",
|
||||
"description": "AWS Batch now supports managing CloudWatch Container Insights on compute environments via CreateComputeEnvironment and UpdateComputeEnvironment."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "BedrockAgentCoreControl",
|
||||
"description": "AgentCore Memory now supports Flexible Namespaces"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "EKS",
|
||||
"description": "Adds support for EKS cluster certificate authorities (CA)"
|
||||
}
|
||||
]
|
||||
52
vendor/aws/aws-sdk-php/.changes/3.393.3
vendored
Normal file
52
vendor/aws/aws-sdk-php/.changes/3.393.3
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
[
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "CloudFront",
|
||||
"description": "Added SigV4a as a supported signing protocol for Origin Access Control (OAC), enabling CloudFront to sign requests to Amazon S3 Multi-Region Access Point (S3-MRAP) origins."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Lambda",
|
||||
"description": "Adds support for full JSON resource-based policies, enabling customers to create, retrieve, update, and delete function resource policies as complete JSON documents."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "SageMaker",
|
||||
"description": "Added IAM Identity Center (IdC) support to CreatePartnerApp and UpdatePartnerApp APIs. Added Customer Managed Key (CMK) support to CreateMlflowApp and DescribeMlflowApp."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Batch",
|
||||
"description": "AWS Batch now supports a new compute environment type that provides fully managed EC2 capacity with broader compute flexibility than Fargate, including GPU instances, bare metal, and specific instance type selection, without infrastructure management overhead."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Amplify",
|
||||
"description": "Increased the maximum allowed length from 255 to 4,096 characters to support longer access tokens."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "DirectConnect",
|
||||
"description": "This release adds custom route prefix pool allocations for Direct Connect. You can set IPv4 and IPv6 route prefix counts on private and transit virtual interfaces, and view pool size and unallocated counts on connections and LAGs, plus direct connect gateway attachment prefix allocation totals."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "EC2",
|
||||
"description": "EC2 marks UEFI instance metadata field as sensitive."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "ARCRegionSwitch",
|
||||
"description": "Adds support for Rds switchover read replica for Oracle databases in Region switch plans"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "SESv2",
|
||||
"description": "Amazon SES now supports per-message tracking overrides. You can use the new ConfigurationOverrides parameter in SendEmail and SendBulkEmail to enable or disable open and click tracking for individual messages without changing your account-level or configuration set settings."
|
||||
},
|
||||
{
|
||||
"type": "enhancement",
|
||||
"category": "PricingPlanManager",
|
||||
"description": "Documentation update for the CreateSubscription API to correct the default value of the approval mode parameter. The default value for paid subscriptions is MANUAL, not IMMEDIATE as previously documented. The default value remains IMMEDIATE for FREE tier subscriptions."
|
||||
}
|
||||
]
|
||||
37
vendor/aws/aws-sdk-php/.changes/3.393.4
vendored
Normal file
37
vendor/aws/aws-sdk-php/.changes/3.393.4
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
[
|
||||
{
|
||||
"type": "enhancement",
|
||||
"category": "WAFV2",
|
||||
"description": "DataProtectionConfig field Key Documentation Update"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "BedrockAgentCoreControl",
|
||||
"description": "Update Dataset schema to THIRDPARTYEVALUATIONV1"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "Kinesis",
|
||||
"description": "Generate account endpoint for Kinesis Data Streams requests when the account ID is available"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "BedrockAgentCore",
|
||||
"description": "Increase spans count from 1k to 20k"
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "DeviceFarm",
|
||||
"description": "Added support to CreateRemoveAccessSession for selecting a server version on the mobile WebDriver endpoint."
|
||||
},
|
||||
{
|
||||
"type": "enhancement",
|
||||
"category": "Backup",
|
||||
"description": "Updating CLI Docs for Backup Audit Manager List Job Summaries APIs."
|
||||
},
|
||||
{
|
||||
"type": "api-change",
|
||||
"category": "CloudWatch",
|
||||
"description": "Allows customers to specify an initial warm up period to wait for metrics to arrive when creating metric or log alarms"
|
||||
}
|
||||
]
|
||||
7
vendor/aws/aws-sdk-php/src/AwsClient.php
vendored
7
vendor/aws/aws-sdk-php/src/AwsClient.php
vendored
|
|
@ -204,6 +204,13 @@ class AwsClient implements AwsClientInterface
|
|||
* signature version to use with a service (e.g., v4). Note that
|
||||
* per/operation signature version MAY override this requested signature
|
||||
* version.
|
||||
* - transport_sharing: (string) Set to a transport sharing mode ("none",
|
||||
* "handler_prefer", "handler_require", "persistent_prefer", or
|
||||
* "persistent_require") to enable connection sharing on the default
|
||||
* HTTP handler. The "*_prefer" modes degrade gracefully when the
|
||||
* installed version of Guzzle or the runtime cannot honor them, and
|
||||
* the "*_require" modes throw. This option only applies when the SDK
|
||||
* creates the default HTTP handler.
|
||||
* - use_aws_shared_config_files: (bool, default=bool(true)) Set to false to
|
||||
* disable checking for shared config file in '~/.aws/config' and
|
||||
* '~/.aws/credentials'. This will override the AWS_CONFIG_FILE
|
||||
|
|
|
|||
24
vendor/aws/aws-sdk-php/src/ClientResolver.php
vendored
24
vendor/aws/aws-sdk-php/src/ClientResolver.php
vendored
|
|
@ -30,6 +30,7 @@ use Aws\EndpointV2\EndpointDefinitionProvider;
|
|||
use Aws\EndpointV2\EndpointProviderV2;
|
||||
use Aws\Exception\AwsException;
|
||||
use Aws\Exception\InvalidRegionException;
|
||||
use Aws\Handler\HttpTransportSharing;
|
||||
use Aws\Retry\ConfigurationInterface as RetryConfigInterface;
|
||||
use Aws\Retry\ConfigurationProvider as RetryConfigProvider;
|
||||
use Aws\Retry\V3\OptIn as NewRetriesOptIn;
|
||||
|
|
@ -293,6 +294,12 @@ class ClientResolver
|
|||
'default' => [],
|
||||
'doc' => 'Set to an array of SDK request options to apply to each request (e.g., proxy, verify, etc.).',
|
||||
],
|
||||
'transport_sharing' => [
|
||||
'type' => 'value',
|
||||
'valid' => ['string'],
|
||||
'doc' => 'Set to a transport sharing mode ("none", "handler_prefer", "handler_require", "persistent_prefer", or "persistent_require") to enable connection sharing on the default HTTP handler. The "*_prefer" modes degrade gracefully when the installed version of Guzzle or the runtime cannot honor them, and the "*_require" modes throw. This option only applies when the SDK creates the default HTTP handler, and the "*_require" modes throw when combined with a custom "handler" or "http_handler" option.',
|
||||
'fn' => [__CLASS__, '_apply_transport_sharing'],
|
||||
],
|
||||
'http_handler' => [
|
||||
'type' => 'value',
|
||||
'valid' => ['callable'],
|
||||
|
|
@ -988,7 +995,7 @@ class ClientResolver
|
|||
public static function _default_handler(array &$args)
|
||||
{
|
||||
return new WrappedHttpHandler(
|
||||
default_http_handler(),
|
||||
default_http_handler($args['transport_sharing'] ?? null),
|
||||
$args['parser'],
|
||||
$args['error_parser'],
|
||||
$args['exception_class'],
|
||||
|
|
@ -1007,6 +1014,21 @@ class ClientResolver
|
|||
);
|
||||
}
|
||||
|
||||
public static function _apply_transport_sharing($value, array &$args)
|
||||
{
|
||||
HttpTransportSharing::validate($value);
|
||||
|
||||
if ((isset($args['http_handler']) || isset($args['handler']))
|
||||
&& HttpTransportSharing::isRequired($value)
|
||||
) {
|
||||
throw new IAE('The "transport_sharing" option can only'
|
||||
. ' require transport sharing when the SDK creates the'
|
||||
. ' default HTTP handler. Remove the "handler" or'
|
||||
. ' "http_handler" option, or configure transport sharing'
|
||||
. ' on the custom handler instead.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function _apply_app_id($value, array &$args)
|
||||
{
|
||||
// AppId should not be longer than 50 chars
|
||||
|
|
|
|||
|
|
@ -95,6 +95,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise createEmailAddressAsync(array $args = [])
|
||||
* @method \Aws\Result createEvaluationForm(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createEvaluationFormAsync(array $args = [])
|
||||
* @method \Aws\Result createExtractionDefinition(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createExtractionDefinitionAsync(array $args = [])
|
||||
* @method \Aws\Result createHoursOfOperation(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createHoursOfOperationAsync(array $args = [])
|
||||
* @method \Aws\Result createHoursOfOperationOverride(array $args = [])
|
||||
|
|
@ -175,6 +177,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise deleteEmailAddressAsync(array $args = [])
|
||||
* @method \Aws\Result deleteEvaluationForm(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteEvaluationFormAsync(array $args = [])
|
||||
* @method \Aws\Result deleteExtractionDefinition(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteExtractionDefinitionAsync(array $args = [])
|
||||
* @method \Aws\Result deleteHoursOfOperation(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteHoursOfOperationAsync(array $args = [])
|
||||
* @method \Aws\Result deleteHoursOfOperationOverride(array $args = [])
|
||||
|
|
@ -253,6 +257,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise describeEmailAddressAsync(array $args = [])
|
||||
* @method \Aws\Result describeEvaluationForm(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeEvaluationFormAsync(array $args = [])
|
||||
* @method \Aws\Result describeExtractionDefinition(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeExtractionDefinitionAsync(array $args = [])
|
||||
* @method \Aws\Result describeHoursOfOperation(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeHoursOfOperationAsync(array $args = [])
|
||||
* @method \Aws\Result describeHoursOfOperationOverride(array $args = [])
|
||||
|
|
@ -421,6 +427,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise listEvaluationFormVersionsAsync(array $args = [])
|
||||
* @method \Aws\Result listEvaluationForms(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise listEvaluationFormsAsync(array $args = [])
|
||||
* @method \Aws\Result listExtractionDefinitions(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise listExtractionDefinitionsAsync(array $args = [])
|
||||
* @method \Aws\Result listFlowAssociations(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise listFlowAssociationsAsync(array $args = [])
|
||||
* @method \Aws\Result listHoursOfOperationOverrides(array $args = [])
|
||||
|
|
@ -687,6 +695,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise updateEmailAddressMetadataAsync(array $args = [])
|
||||
* @method \Aws\Result updateEvaluationForm(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise updateEvaluationFormAsync(array $args = [])
|
||||
* @method \Aws\Result updateExtractionDefinition(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise updateExtractionDefinitionAsync(array $args = [])
|
||||
* @method \Aws\Result updateHoursOfOperation(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise updateHoursOfOperationAsync(array $args = [])
|
||||
* @method \Aws\Result updateHoursOfOperationOverride(array $args = [])
|
||||
|
|
|
|||
10
vendor/aws/aws-sdk-php/src/EKS/EKSClient.php
vendored
10
vendor/aws/aws-sdk-php/src/EKS/EKSClient.php
vendored
|
|
@ -5,6 +5,8 @@ use Aws\AwsClient;
|
|||
|
||||
/**
|
||||
* This client is used to interact with the **Amazon Elastic Container Service for Kubernetes** service.
|
||||
* @method \Aws\Result activateCertificateAuthority(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise activateCertificateAuthorityAsync(array $args = [])
|
||||
* @method \Aws\Result associateAccessPolicy(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise associateAccessPolicyAsync(array $args = [])
|
||||
* @method \Aws\Result associateEncryptionConfig(array $args = [])
|
||||
|
|
@ -19,6 +21,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise createAddonAsync(array $args = [])
|
||||
* @method \Aws\Result createCapability(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createCapabilityAsync(array $args = [])
|
||||
* @method \Aws\Result createCertificateAuthority(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createCertificateAuthorityAsync(array $args = [])
|
||||
* @method \Aws\Result createCluster(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createClusterAsync(array $args = [])
|
||||
* @method \Aws\Result createEksAnywhereSubscription(array $args = [])
|
||||
|
|
@ -35,6 +39,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise deleteAddonAsync(array $args = [])
|
||||
* @method \Aws\Result deleteCapability(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteCapabilityAsync(array $args = [])
|
||||
* @method \Aws\Result deleteCertificateAuthority(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteCertificateAuthorityAsync(array $args = [])
|
||||
* @method \Aws\Result deleteCluster(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteClusterAsync(array $args = [])
|
||||
* @method \Aws\Result deleteEksAnywhereSubscription(array $args = [])
|
||||
|
|
@ -57,6 +63,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise describeAddonVersionsAsync(array $args = [])
|
||||
* @method \Aws\Result describeCapability(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeCapabilityAsync(array $args = [])
|
||||
* @method \Aws\Result describeCertificateAuthority(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeCertificateAuthorityAsync(array $args = [])
|
||||
* @method \Aws\Result describeCluster(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeClusterAsync(array $args = [])
|
||||
* @method \Aws\Result describeClusterVersions(array $args = [])
|
||||
|
|
@ -91,6 +99,8 @@ use Aws\AwsClient;
|
|||
* @method \GuzzleHttp\Promise\Promise listAssociatedAccessPoliciesAsync(array $args = [])
|
||||
* @method \Aws\Result listCapabilities(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise listCapabilitiesAsync(array $args = [])
|
||||
* @method \Aws\Result listCertificateAuthorities(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise listCertificateAuthoritiesAsync(array $args = [])
|
||||
* @method \Aws\Result listClusters(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise listClustersAsync(array $args = [])
|
||||
* @method \Aws\Result listEksAnywhereSubscriptions(array $args = [])
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
namespace Aws\Handler\Guzzle;
|
||||
|
||||
use Aws\Handler\HttpHandlerError;
|
||||
use Aws\Handler\HttpTransportSharing;
|
||||
use GuzzleHttp\Utils;
|
||||
use GuzzleHttp\Promise;
|
||||
use GuzzleHttp\Client;
|
||||
|
|
@ -18,11 +19,23 @@ class GuzzleHandler
|
|||
private $client;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param ClientInterface|null $client
|
||||
* @param string|null $transportSharing
|
||||
*/
|
||||
public function __construct(?ClientInterface $client = null)
|
||||
{
|
||||
$this->client = $client ?: new Client();
|
||||
public function __construct(
|
||||
?ClientInterface $client = null,
|
||||
?string $transportSharing = null
|
||||
) {
|
||||
if ($client !== null && HttpTransportSharing::isRequired($transportSharing)) {
|
||||
throw new \InvalidArgumentException('The provided transport'
|
||||
. ' sharing mode cannot require sharing when a client is'
|
||||
. ' provided. Configure the "transport_sharing" option on'
|
||||
. ' the provided client instead.');
|
||||
}
|
||||
|
||||
$this->client = $client ?: new Client(
|
||||
HttpTransportSharing::toClientConfig($transportSharing)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue