v1.3.0
This commit is contained in:
parent
a97911a978
commit
916d7845be
91 changed files with 6861 additions and 6907 deletions
|
|
@ -1,5 +1,40 @@
|
|||
== Changelog ==
|
||||
|
||||
= 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 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.
|
||||
|
||||
**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
|
||||
|
||||
= 1.2.1 =
|
||||
|
||||
_Release date: 2026-06-05_
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* Gitea Plugin URI: https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload
|
||||
* Primary Branch: main
|
||||
* Description: Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.
|
||||
* Version: 1.2.1
|
||||
* Version: 1.3.0
|
||||
* Requires at least: 4.1
|
||||
* Requires PHP: 8.1
|
||||
* Author: ROBOTSTXT
|
||||
|
|
@ -36,7 +36,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
*
|
||||
* @since 1.1.4
|
||||
*/
|
||||
define( 'IDRIVEE2_MEDIA_VERSION', '1.2.1' );
|
||||
define( 'IDRIVEE2_MEDIA_VERSION', '1.3.0' );
|
||||
|
||||
/**
|
||||
* Load Composer autoloader if available.
|
||||
|
|
@ -60,6 +60,7 @@ require_once __DIR__ . '/includes/class-s3-client-factory.php';
|
|||
require_once __DIR__ . '/includes/class-url-rewriter.php';
|
||||
require_once __DIR__ . '/includes/class-media-uploader.php';
|
||||
require_once __DIR__ . '/includes/class-admin-page.php';
|
||||
require_once __DIR__ . '/includes/class-subsize-filter.php';
|
||||
require_once __DIR__ . '/includes/class-plugin.php';
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -526,6 +526,11 @@ class Admin_Page {
|
|||
$sanitized['region'] = isset( $input['region'] ) ? sanitize_text_field( $input['region'] ) : '';
|
||||
$sanitized['domain'] = isset( $input['domain'] ) ? sanitize_text_field( $input['domain'] ) : '';
|
||||
|
||||
// Sub-sizes mode: strict whitelist, default 'all'.
|
||||
$raw_mode = isset( $input['subsizes_mode'] ) ? strtolower( (string) sanitize_text_field( $input['subsizes_mode'] ) ) : '';
|
||||
$allowed_modes = array( 'all', 'thumbnail', 'none' );
|
||||
$sanitized['subsizes_mode'] = in_array( $raw_mode, $allowed_modes, true ) ? $raw_mode : 'all';
|
||||
|
||||
return $sanitized;
|
||||
}
|
||||
|
||||
|
|
@ -565,24 +570,26 @@ class Admin_Page {
|
|||
* @return void
|
||||
*/
|
||||
public function render_settings_page(): void {
|
||||
$host = $this->config->get_host();
|
||||
$access_key = $this->config->get_key();
|
||||
$secret = $this->config->get_secret();
|
||||
$bucket = $this->config->get_bucket();
|
||||
$region = $this->config->get_region();
|
||||
$domain = $this->config->get_domain();
|
||||
$host = $this->config->get_host();
|
||||
$access_key = $this->config->get_key();
|
||||
$secret = $this->config->get_secret();
|
||||
$bucket = $this->config->get_bucket();
|
||||
$region = $this->config->get_region();
|
||||
$domain = $this->config->get_domain();
|
||||
$subsizes_mode = $this->config->get_subsizes_mode();
|
||||
|
||||
$is_configured = $this->config->is_configured();
|
||||
|
||||
// Check which fields are defined in wp-config.php.
|
||||
$host_in_config = $this->config->is_defined_in_wp_config( 'host' );
|
||||
$key_in_config = $this->config->is_defined_in_wp_config( 'key' );
|
||||
$secret_in_config = $this->config->is_defined_in_wp_config( 'secret' );
|
||||
$bucket_in_config = $this->config->is_defined_in_wp_config( 'bucket' );
|
||||
$region_in_config = $this->config->is_defined_in_wp_config( 'region' );
|
||||
$domain_in_config = $this->config->is_defined_in_wp_config( 'domain' );
|
||||
$host_in_config = $this->config->is_defined_in_wp_config( 'host' );
|
||||
$key_in_config = $this->config->is_defined_in_wp_config( 'key' );
|
||||
$secret_in_config = $this->config->is_defined_in_wp_config( 'secret' );
|
||||
$bucket_in_config = $this->config->is_defined_in_wp_config( 'bucket' );
|
||||
$region_in_config = $this->config->is_defined_in_wp_config( 'region' );
|
||||
$domain_in_config = $this->config->is_defined_in_wp_config( 'domain' );
|
||||
$subsizes_mode_in_config = $this->config->is_defined_in_wp_config( 'subsizes_mode' );
|
||||
|
||||
$any_in_config = $host_in_config || $key_in_config || $secret_in_config || $bucket_in_config || $region_in_config || $domain_in_config;
|
||||
$any_in_config = $host_in_config || $key_in_config || $secret_in_config || $bucket_in_config || $region_in_config || $domain_in_config || $subsizes_mode_in_config;
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1><?php esc_html_e( 'iDrivee2 Media Upload Settings', 'idrivee2-media-upload' ); ?></h1>
|
||||
|
|
@ -731,32 +738,80 @@ class Admin_Page {
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<label for="idrivee2_domain"><?php esc_html_e( 'Custom CDN Domain', 'idrivee2-media-upload' ); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<input
|
||||
type="url"
|
||||
id="idrivee2_domain"
|
||||
name="idrivee2_media_settings[domain]"
|
||||
value="<?php echo esc_attr( $domain ); ?>"
|
||||
class="regular-text"
|
||||
placeholder="https://cdn.example.com"
|
||||
<?php echo $domain_in_config ? 'readonly' : ''; ?>
|
||||
/>
|
||||
<p class="description">
|
||||
<?php
|
||||
if ( $domain_in_config ) {
|
||||
esc_html_e( 'Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)', 'idrivee2-media-upload' );
|
||||
} else {
|
||||
esc_html_e( 'Optional: Custom domain for serving media files.', 'idrivee2-media-upload' );
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<label for="idrivee2_domain"><?php esc_html_e( 'Custom CDN Domain', 'idrivee2-media-upload' ); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<input
|
||||
type="url"
|
||||
id="idrivee2_domain"
|
||||
name="idrivee2_media_settings[domain]"
|
||||
value="<?php echo esc_attr( $domain ); ?>"
|
||||
class="regular-text"
|
||||
placeholder="https://cdn.example.com"
|
||||
<?php echo $domain_in_config ? 'readonly' : ''; ?>
|
||||
/>
|
||||
<p class="description">
|
||||
<?php
|
||||
if ( $domain_in_config ) {
|
||||
esc_html_e( 'Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)', 'idrivee2-media-upload' );
|
||||
} else {
|
||||
esc_html_e( 'Optional: Custom domain for serving media files.', 'idrivee2-media-upload' );
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<label for="idrivee2_subsizes_mode"><?php esc_html_e( 'Image Sub-sizes', 'idrivee2-media-upload' ); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<select
|
||||
id="idrivee2_subsizes_mode"
|
||||
name="idrivee2_media_settings[subsizes_mode]"
|
||||
<?php echo $subsizes_mode_in_config ? 'disabled' : ''; ?>
|
||||
>
|
||||
<?php
|
||||
$mode_options = array(
|
||||
'all' => __( 'All registered sizes (WordPress default)', 'idrivee2-media-upload' ),
|
||||
'thumbnail' => __( 'Only thumbnail (faster uploads)', 'idrivee2-media-upload' ),
|
||||
'none' => __( 'No sub-sizes (original only)', 'idrivee2-media-upload' ),
|
||||
);
|
||||
foreach ( $mode_options as $value => $label ) {
|
||||
printf(
|
||||
'<option value="%s"%s>%s</option>',
|
||||
esc_attr( $value ),
|
||||
selected( $subsizes_mode, $value, false ),
|
||||
esc_html( $label )
|
||||
);
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php
|
||||
// Disabled selects are not submitted with the form; preserve the
|
||||
// constant-defined value via a hidden input so it is not lost on save.
|
||||
if ( $subsizes_mode_in_config ) {
|
||||
printf(
|
||||
'<input type="hidden" name="idrivee2_media_settings[subsizes_mode]" value="%s" />',
|
||||
esc_attr( $subsizes_mode )
|
||||
);
|
||||
}
|
||||
?>
|
||||
<p class="description">
|
||||
<?php
|
||||
if ( $subsizes_mode_in_config ) {
|
||||
esc_html_e( 'Defined in wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)', 'idrivee2-media-upload' );
|
||||
} else {
|
||||
esc_html_e( 'Reduces work for large uploads (e.g. camera files). Also disables the -scaled derivative in thumbnail/none modes.', 'idrivee2-media-upload' );
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ( ! $any_in_config ) : ?>
|
||||
|
|
@ -767,7 +822,7 @@ class Admin_Page {
|
|||
</p>
|
||||
<?php
|
||||
// Show submit button only if at least one field can be edited.
|
||||
$can_edit = ! $host_in_config || ! $key_in_config || ! $secret_in_config || ! $bucket_in_config || ! $region_in_config || ! $domain_in_config;
|
||||
$can_edit = ! $host_in_config || ! $key_in_config || ! $secret_in_config || ! $bucket_in_config || ! $region_in_config || ! $domain_in_config || ! $subsizes_mode_in_config;
|
||||
if ( $can_edit ) :
|
||||
?>
|
||||
<?php submit_button( __( 'Save Settings', 'idrivee2-media-upload' ) ); ?>
|
||||
|
|
|
|||
|
|
@ -16,15 +16,15 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configuration validator and accessor for iDrivee2 constants.
|
||||
*
|
||||
* Validates and provides access to the five required configuration constants
|
||||
* and the optional CDN domain constant. Configuration can come from either
|
||||
* wp-config.php constants (priority) or WordPress options.
|
||||
*
|
||||
* @since 0.3.0
|
||||
*/
|
||||
/**
|
||||
* Configuration validator and accessor for iDrivee2 constants.
|
||||
*
|
||||
* Validates and provides access to the five required configuration constants
|
||||
* and the optional CDN domain constant. Configuration can come from either
|
||||
* wp-config.php constants (priority) or WordPress options.
|
||||
*
|
||||
* @since 0.3.0
|
||||
*/
|
||||
class Config {
|
||||
/**
|
||||
* Required configuration keys.
|
||||
|
|
@ -46,6 +46,25 @@ class Config {
|
|||
*/
|
||||
private const OPTION_NAME = 'idrivee2_media_settings';
|
||||
|
||||
/**
|
||||
* Map of config keys to wp-config.php constant names.
|
||||
*
|
||||
* Centralised so is_defined_in_wp_config() and get_value() cannot drift.
|
||||
*
|
||||
* @since 1.3.0
|
||||
*
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private const CONSTANT_MAP = array(
|
||||
'host' => 'IDRIVEE2_MEDIA_HOST',
|
||||
'key' => 'IDRIVEE2_MEDIA_KEY',
|
||||
'secret' => 'IDRIVEE2_MEDIA_SECRET',
|
||||
'bucket' => 'IDRIVEE2_MEDIA_BUCKET',
|
||||
'region' => 'IDRIVEE2_MEDIA_REGION',
|
||||
'domain' => 'IDRIVEE2_MEDIA_DOMAIN',
|
||||
'subsizes_mode' => 'IDRIVEE2_MEDIA_SUBSIZES_MODE',
|
||||
);
|
||||
|
||||
/**
|
||||
* Logger instance.
|
||||
*
|
||||
|
|
@ -92,17 +111,8 @@ class Config {
|
|||
* @return bool True if defined in wp-config.php, false otherwise.
|
||||
*/
|
||||
public function is_defined_in_wp_config( string $key ): bool {
|
||||
$constant_map = array(
|
||||
'host' => 'IDRIVEE2_MEDIA_HOST',
|
||||
'key' => 'IDRIVEE2_MEDIA_KEY',
|
||||
'secret' => 'IDRIVEE2_MEDIA_SECRET',
|
||||
'bucket' => 'IDRIVEE2_MEDIA_BUCKET',
|
||||
'region' => 'IDRIVEE2_MEDIA_REGION',
|
||||
'domain' => 'IDRIVEE2_MEDIA_DOMAIN',
|
||||
);
|
||||
|
||||
$constant_name = $constant_map[ $key ] ?? '';
|
||||
return $constant_name && defined( $constant_name );
|
||||
$constant_name = self::CONSTANT_MAP[ $key ] ?? '';
|
||||
return '' !== $constant_name && defined( $constant_name );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -116,18 +126,9 @@ class Config {
|
|||
* @return string The configuration value, or empty string if not set.
|
||||
*/
|
||||
private function get_value( string $key ): string {
|
||||
$constant_map = array(
|
||||
'host' => 'IDRIVEE2_MEDIA_HOST',
|
||||
'key' => 'IDRIVEE2_MEDIA_KEY',
|
||||
'secret' => 'IDRIVEE2_MEDIA_SECRET',
|
||||
'bucket' => 'IDRIVEE2_MEDIA_BUCKET',
|
||||
'region' => 'IDRIVEE2_MEDIA_REGION',
|
||||
'domain' => 'IDRIVEE2_MEDIA_DOMAIN',
|
||||
);
|
||||
|
||||
// Check wp-config.php constant first (highest priority).
|
||||
$constant_name = $constant_map[ $key ] ?? '';
|
||||
if ( $constant_name && defined( $constant_name ) ) {
|
||||
$constant_name = self::CONSTANT_MAP[ $key ] ?? '';
|
||||
if ( '' !== $constant_name && defined( $constant_name ) ) {
|
||||
return (string) constant( $constant_name );
|
||||
}
|
||||
|
||||
|
|
@ -216,6 +217,29 @@ class Config {
|
|||
return ! empty( $this->get_domain() );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the configured sub-sizes mode.
|
||||
*
|
||||
* Controls which image sub-sizes WordPress generates. Returns one of
|
||||
* 'all', 'thumbnail', or 'none'; falls back to 'all' for any value that
|
||||
* is not on the whitelist (including unset/empty).
|
||||
*
|
||||
* @since 1.3.0
|
||||
*
|
||||
* @return string The sub-sizes mode.
|
||||
*/
|
||||
public function get_subsizes_mode(): string {
|
||||
$value = $this->get_value( 'subsizes_mode' );
|
||||
|
||||
$allowed = array(
|
||||
'all',
|
||||
'thumbnail',
|
||||
'none',
|
||||
);
|
||||
|
||||
return in_array( $value, $allowed, true ) ? $value : 'all';
|
||||
}
|
||||
|
||||
/**
|
||||
* Update configuration options in WordPress database.
|
||||
*
|
||||
|
|
@ -239,6 +263,11 @@ class Config {
|
|||
'domain' => isset( $data['domain'] ) ? sanitize_text_field( $data['domain'] ) : '',
|
||||
);
|
||||
|
||||
// Sub-sizes mode: strict whitelist, default 'all'.
|
||||
$raw_mode = isset( $data['subsizes_mode'] ) ? strtolower( (string) sanitize_text_field( $data['subsizes_mode'] ) ) : '';
|
||||
$allowed_modes = array( 'all', 'thumbnail', 'none' );
|
||||
$options['subsizes_mode'] = in_array( $raw_mode, $allowed_modes, true ) ? $raw_mode : 'all';
|
||||
|
||||
// Log configuration changes.
|
||||
if ( $this->logger ) {
|
||||
foreach ( $options as $key => $new_value ) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class Media_Uploader {
|
|||
/**
|
||||
* Attachment IDs currently being uploaded, to prevent re-entrant calls.
|
||||
*
|
||||
* wp_update_post() (used to update the attachment GUID) fires edit_attachment,
|
||||
* Calling wp_update_post() to update the attachment GUID fires edit_attachment,
|
||||
* which would re-trigger upload_attachment_to_idrivee2() causing infinite recursion.
|
||||
*
|
||||
* @var array<int, bool>
|
||||
|
|
@ -145,7 +145,7 @@ class Media_Uploader {
|
|||
$base_path = path_join( $basedir, $meta_file );
|
||||
$meta_sizes = isset( $meta['sizes'] ) && is_array( $meta['sizes'] ) ? $meta['sizes'] : array();
|
||||
|
||||
/** @var array<string, string> $files */
|
||||
/* @var array<string, string> $files */
|
||||
$files = array( 'original' => $base_path );
|
||||
foreach ( $meta_sizes as $size ) {
|
||||
if ( is_array( $size ) && isset( $size['file'] ) && is_string( $size['file'] ) ) {
|
||||
|
|
@ -157,8 +157,8 @@ class Media_Uploader {
|
|||
$client = $this->client_factory->create();
|
||||
$bucket = $this->config->get_bucket();
|
||||
$commands = array();
|
||||
$key_map = array(); // int index -> file metadata
|
||||
$handles = array(); // int index -> resource
|
||||
$key_map = array(); // int index -> file metadata.
|
||||
$handles = array(); // int index -> resource.
|
||||
|
||||
$real_basedir = realpath( $basedir );
|
||||
$idx = 0;
|
||||
|
|
|
|||
|
|
@ -81,6 +81,13 @@ class Plugin {
|
|||
*/
|
||||
private $url_rewriter;
|
||||
|
||||
/**
|
||||
* Sub-size filter.
|
||||
*
|
||||
* @var Subsize_Filter
|
||||
*/
|
||||
private $subsize_filter;
|
||||
|
||||
/**
|
||||
* Plugin file path.
|
||||
*
|
||||
|
|
@ -110,6 +117,7 @@ class Plugin {
|
|||
$this->admin_page = new Admin_Page( $this->config, $this->client_factory, $this->logger, $this->rate_limiter, $plugin_file );
|
||||
$this->media_uploader = new Media_Uploader( $this->config, $this->client_factory, $this->logger );
|
||||
$this->url_rewriter = new URL_Rewriter( $this->config );
|
||||
$this->subsize_filter = new Subsize_Filter( $this->config );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -145,6 +153,7 @@ class Plugin {
|
|||
$this->admin_page->register();
|
||||
$this->media_uploader->register();
|
||||
$this->url_rewriter->register();
|
||||
$this->subsize_filter->register();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
168
includes/class-subsize-filter.php
Normal file
168
includes/class-subsize-filter.php
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
<?php
|
||||
/**
|
||||
* Sub-size filter for iDrivee2 Media Upload.
|
||||
*
|
||||
* @package iDrivee2Media
|
||||
* @since 1.3.0
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace iDrivee2Media;
|
||||
|
||||
/**
|
||||
* Prevent direct access to this file.
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the image sub-sizes generated by WordPress.
|
||||
*
|
||||
* Reduces the number of sub-sizes generated per uploaded image. Affects both
|
||||
* the WP 7.1 client-side path (the browser reads the registered sub-sizes via
|
||||
* the REST index) and the traditional server-side path
|
||||
* (intermediate_image_sizes_advanced consumes the same list).
|
||||
*
|
||||
* Modes:
|
||||
* - 'all' Default WordPress behavior; all registered sizes are generated.
|
||||
* - 'thumbnail' Only the 'thumbnail' sub-size is generated.
|
||||
* - 'none' No sub-sizes are generated; only the original is kept.
|
||||
*
|
||||
* In 'thumbnail' and 'none' modes the big_image_size_threshold is also
|
||||
* disabled, so WordPress does not create a '-scaled' derivative for images
|
||||
* larger than 2560px.
|
||||
*
|
||||
* @since 1.3.0
|
||||
*/
|
||||
class Subsize_Filter {
|
||||
/**
|
||||
* Mode: generate all registered sub-sizes (default).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const MODE_ALL = 'all';
|
||||
|
||||
/**
|
||||
* Mode: generate only the 'thumbnail' sub-size.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const MODE_THUMBNAIL = 'thumbnail';
|
||||
|
||||
/**
|
||||
* Mode: generate no sub-sizes.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const MODE_NONE = 'none';
|
||||
|
||||
/**
|
||||
* Allowed mode values.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
private const ALLOWED_MODES = array(
|
||||
self::MODE_ALL,
|
||||
self::MODE_THUMBNAIL,
|
||||
self::MODE_NONE,
|
||||
);
|
||||
|
||||
/**
|
||||
* Configuration instance.
|
||||
*
|
||||
* @var Config
|
||||
*/
|
||||
private $config;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.3.0
|
||||
*
|
||||
* @param Config $config Configuration instance.
|
||||
*/
|
||||
public function __construct( Config $config ) {
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the WordPress filters.
|
||||
*
|
||||
* Runs at priority 90 so user-supplied filters at the default priority
|
||||
* (10) and at WP core's own guard priority (100) are not pre-empted.
|
||||
*
|
||||
* @since 1.3.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register(): void {
|
||||
add_filter( 'intermediate_image_sizes', array( $this, 'filter_intermediate_image_sizes' ), 90 );
|
||||
add_filter( 'big_image_size_threshold', array( $this, 'filter_big_image_threshold' ), 90, 4 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the list of intermediate image sizes.
|
||||
*
|
||||
* This filter is the upstream source of truth consumed by
|
||||
* wp_get_registered_image_subsizes(), which feeds both the REST index
|
||||
* response (client-side path) and intermediate_image_sizes_advanced
|
||||
* (server-side path).
|
||||
*
|
||||
* @since 1.3.0
|
||||
*
|
||||
* @param array<int, string> $sizes Registered image size names.
|
||||
* @return array<int, string> Filtered size names.
|
||||
*/
|
||||
public function filter_intermediate_image_sizes( array $sizes ): array {
|
||||
$mode = $this->effective_mode();
|
||||
|
||||
if ( self::MODE_ALL === $mode ) {
|
||||
return $sizes;
|
||||
}
|
||||
|
||||
if ( self::MODE_THUMBNAIL === $mode ) {
|
||||
return in_array( 'thumbnail', $sizes, true ) ? array( 'thumbnail' ) : array();
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the big image size threshold.
|
||||
*
|
||||
* Returns 0 in 'thumbnail' and 'none' modes to disable the '-scaled'
|
||||
* derivative that WordPress creates for images larger than the threshold.
|
||||
*
|
||||
* Note: WordPress fires this filter since 5.3. On older versions the
|
||||
* callback is a no-op; the mode still applies via intermediate_image_sizes.
|
||||
*
|
||||
* @since 1.3.0
|
||||
*
|
||||
* @param int $threshold Threshold in pixels. Default 2560.
|
||||
* @param array<int, int> $imagesize Indexed array of width and height.
|
||||
* @param string $file Path to the uploaded file.
|
||||
* @param int $attachment_id Attachment post ID.
|
||||
* @return int Threshold in pixels, or 0 to disable.
|
||||
*/
|
||||
public function filter_big_image_threshold( int $threshold, array $imagesize = array(), string $file = '', int $attachment_id = 0 ): int {
|
||||
if ( self::MODE_ALL === $this->effective_mode() ) {
|
||||
return $threshold;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve the effective mode, defaulting to 'all' for any value that is
|
||||
* not on the whitelist.
|
||||
*
|
||||
* @since 1.3.0
|
||||
*
|
||||
* @return string One of the MODE_* constants.
|
||||
*/
|
||||
private function effective_mode(): string {
|
||||
$mode = $this->config->get_subsizes_mode();
|
||||
return in_array( $mode, self::ALLOWED_MODES, true ) ? $mode : self::MODE_ALL;
|
||||
}
|
||||
}
|
||||
BIN
languages/idrivee2-media-upload-ca.mo
Normal file
BIN
languages/idrivee2-media-upload-ca.mo
Normal file
Binary file not shown.
230
languages/idrivee2-media-upload-ca.po
Normal file
230
languages/idrivee2-media-upload-ca.po
Normal file
|
|
@ -0,0 +1,230 @@
|
|||
# Translation of iDrivee2 Media Upload 1.3.0 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.3.0\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idrivee2-media-upload\n"
|
||||
"POT-Creation-Date: 2026-07-18T13:20:23+00:00\n"
|
||||
"PO-Revision-Date: 2026-07-18T13:30:00+00:00\n"
|
||||
"Last-Translator: ROBOTSTXT <hola@robotstxt.es>\n"
|
||||
"Language-Team: Català <ca@li.org>\n"
|
||||
"Language: ca\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: WP-CLI 2.12.0\n"
|
||||
"X-Domain: idrivee2-media-upload\n"
|
||||
|
||||
#. Plugin Name of the plugin
|
||||
msgid "iDrivee2 Media Upload"
|
||||
msgstr "iDrivee2 Media Upload"
|
||||
|
||||
#. Plugin URI of the plugin
|
||||
msgid "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
||||
msgstr "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
||||
|
||||
#. Description of the plugin
|
||||
msgid ""
|
||||
"Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade "
|
||||
"security and logging."
|
||||
msgstr ""
|
||||
"Puja fitxers multimèdia a iDrivee2 (compatible amb S3) amb seguretat de "
|
||||
"nivell empresarial i registre."
|
||||
|
||||
#. Author of the plugin
|
||||
msgid "ROBOTSTXT"
|
||||
msgstr "ROBOTSTXT"
|
||||
|
||||
#. Author URI of the plugin
|
||||
msgid "https://www.robotstxt.es/"
|
||||
msgstr "https://www.robotstxt.es/"
|
||||
|
||||
#. translators: Admin menu title.
|
||||
msgid "iDrivee2 Media Upload Settings"
|
||||
msgstr "Ajusts d'iDrivee2 Media Upload"
|
||||
|
||||
#. translators: Admin menu label.
|
||||
msgid "iDrivee2"
|
||||
msgstr "iDrivee2"
|
||||
|
||||
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.
|
||||
#, php-format
|
||||
msgid "Please wait %d seconds before testing again."
|
||||
msgstr "Espereu %d segons abans de tornar a provar-ho."
|
||||
|
||||
msgid "Configuration is incomplete. Please check your settings."
|
||||
msgstr "La configuració és incompleta. Comproveu els ajusts."
|
||||
|
||||
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.
|
||||
#, php-format
|
||||
msgid "AWS Error: %s"
|
||||
msgstr "Error d'AWS: %s"
|
||||
|
||||
msgid "Unknown error"
|
||||
msgstr "Error desconegut"
|
||||
|
||||
#. translators: %s is the error message.
|
||||
#, php-format
|
||||
msgid "Error: %s"
|
||||
msgstr "Error: %s"
|
||||
|
||||
#. translators: %d is the number of seconds to wait.
|
||||
#, php-format
|
||||
msgid "Please wait %d seconds before uploading again."
|
||||
msgstr "Espereu %d segons abans de tornar a pujar-ne."
|
||||
|
||||
msgid "File uploaded successfully!"
|
||||
msgstr "S'ha pujat el fitxer correctament!"
|
||||
|
||||
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.
|
||||
#, php-format
|
||||
msgid "File %s deleted successfully."
|
||||
msgstr "S'ha eliminat el fitxer %s correctament."
|
||||
|
||||
msgid "Host URL must start with \"https://\"."
|
||||
msgstr "La URL de l'amfitrió ha de començar per «https://»."
|
||||
|
||||
msgid ""
|
||||
"Some settings are defined in wp-config.php and cannot be changed here. "
|
||||
"These fields are shown as read-only."
|
||||
msgstr ""
|
||||
"Alguns ajusts estan definits a wp-config.php i no es poden canviar aquí. "
|
||||
"Aquests camps es mostren com a només de lectura."
|
||||
|
||||
msgid "S3 Host"
|
||||
msgstr "Amfitrió d'S3"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
|
||||
msgid "S3-compatible endpoint URL. Must start with \"https://\"."
|
||||
msgstr "URL de l'endpoint compatible amb S3. Ha de començar per «https://»."
|
||||
|
||||
msgid "Access Key ID"
|
||||
msgstr "ID de la clau d'accés"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
|
||||
msgid "Your S3 access key ID."
|
||||
msgstr "L'ID de la clau d'accés d'S3."
|
||||
|
||||
msgid "Secret Access Key"
|
||||
msgstr "Clau d'accés secreta"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
|
||||
msgid "Your S3 secret access key."
|
||||
msgstr "La clau d'accés secreta d'S3."
|
||||
|
||||
msgid "Bucket Name"
|
||||
msgstr "Nom del dipòsit"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
|
||||
msgid "The name of your S3 bucket."
|
||||
msgstr "El nom del dipòsit S3."
|
||||
|
||||
msgid "Region"
|
||||
msgstr "Regió"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
|
||||
msgid "AWS region (e.g., us-east-1, eu-west-1)."
|
||||
msgstr "Regió d'AWS (per exemple, us-east-1, eu-west-1)."
|
||||
|
||||
msgid "Custom CDN Domain"
|
||||
msgstr "Domini CDN personalitzat"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
|
||||
msgid "Optional: Custom domain for serving media files."
|
||||
msgstr "Opcional: domini personalitzat per a servir fitxers multimèdia."
|
||||
|
||||
msgid "Image Sub-sizes"
|
||||
msgstr "Submides de la imatge"
|
||||
|
||||
msgid "All registered sizes (WordPress default)"
|
||||
msgstr "Totes les mides registrades (predeterminat del WordPress)"
|
||||
|
||||
msgid "Only thumbnail (faster uploads)"
|
||||
msgstr "Només la miniatura (pujades més ràpides)"
|
||||
|
||||
msgid "No sub-sizes (original only)"
|
||||
msgstr "Sense submides (només l'original)"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
msgstr "Definit a wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
|
||||
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."
|
||||
|
||||
msgid "Save Settings"
|
||||
msgstr "Desa els ajusts"
|
||||
|
||||
msgid ""
|
||||
"To modify settings defined in wp-config.php, please edit your wp-config.php "
|
||||
"file directly."
|
||||
msgstr ""
|
||||
"Per a modificar els ajusts definits a wp-config.php, editeu directament "
|
||||
"el fitxer wp-config.php."
|
||||
|
||||
msgid "Test Connection"
|
||||
msgstr "Prova la connexió"
|
||||
|
||||
msgid "Test your S3 configuration to ensure everything is working correctly."
|
||||
msgstr "Proveu la configuració S3 per a assegurar-vos que tot funciona correctament."
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#, php-format
|
||||
msgid "File: %s"
|
||||
msgstr "Fitxer: %s"
|
||||
|
||||
msgid "URL:"
|
||||
msgstr "URL:"
|
||||
|
||||
msgid "Delete this file"
|
||||
msgstr "Elimina aquest fitxer"
|
||||
|
||||
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."
|
||||
|
||||
msgid "Upload Test File"
|
||||
msgstr "Puja un fitxer de prova"
|
||||
|
||||
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."
|
||||
|
||||
msgid "Every 5 Minutes"
|
||||
msgstr "Cada 5 minuts"
|
||||
|
||||
msgid "Security check failed"
|
||||
msgstr "Ha fallat la comprovació de seguretat"
|
||||
BIN
languages/idrivee2-media-upload-es_ES.mo
Normal file
BIN
languages/idrivee2-media-upload-es_ES.mo
Normal file
Binary file not shown.
230
languages/idrivee2-media-upload-es_ES.po
Normal file
230
languages/idrivee2-media-upload-es_ES.po
Normal file
|
|
@ -0,0 +1,230 @@
|
|||
# Translation of iDrivee2 Media Upload 1.3.0 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.3.0\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idrivee2-media-upload\n"
|
||||
"POT-Creation-Date: 2026-07-18T13:20:23+00:00\n"
|
||||
"PO-Revision-Date: 2026-07-18T13:30:00+00:00\n"
|
||||
"Last-Translator: ROBOTSTXT <hola@robotstxt.es>\n"
|
||||
"Language-Team: Español (España) <es@li.org>\n"
|
||||
"Language: es_ES\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: WP-CLI 2.12.0\n"
|
||||
"X-Domain: idrivee2-media-upload\n"
|
||||
|
||||
#. Plugin Name of the plugin
|
||||
msgid "iDrivee2 Media Upload"
|
||||
msgstr "iDrivee2 Media Upload"
|
||||
|
||||
#. Plugin URI of the plugin
|
||||
msgid "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
||||
msgstr "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
||||
|
||||
#. Description of the plugin
|
||||
msgid ""
|
||||
"Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade "
|
||||
"security and logging."
|
||||
msgstr ""
|
||||
"Sube archivos multimedia a iDrivee2 (compatible con S3) con seguridad de "
|
||||
"nivel empresarial y registro."
|
||||
|
||||
#. Author of the plugin
|
||||
msgid "ROBOTSTXT"
|
||||
msgstr "ROBOTSTXT"
|
||||
|
||||
#. Author URI of the plugin
|
||||
msgid "https://www.robotstxt.es/"
|
||||
msgstr "https://www.robotstxt.es/"
|
||||
|
||||
#. translators: Admin menu title.
|
||||
msgid "iDrivee2 Media Upload Settings"
|
||||
msgstr "Ajustes de iDrivee2 Media Upload"
|
||||
|
||||
#. translators: Admin menu label.
|
||||
msgid "iDrivee2"
|
||||
msgstr "iDrivee2"
|
||||
|
||||
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.
|
||||
#, php-format
|
||||
msgid "Please wait %d seconds before testing again."
|
||||
msgstr "Espera %d segundos antes de volver a probar."
|
||||
|
||||
msgid "Configuration is incomplete. Please check your settings."
|
||||
msgstr "La configuración está incompleta. Revisa tus ajustes."
|
||||
|
||||
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.
|
||||
#, php-format
|
||||
msgid "AWS Error: %s"
|
||||
msgstr "Error de AWS: %s"
|
||||
|
||||
msgid "Unknown error"
|
||||
msgstr "Error desconocido"
|
||||
|
||||
#. translators: %s is the error message.
|
||||
#, php-format
|
||||
msgid "Error: %s"
|
||||
msgstr "Error: %s"
|
||||
|
||||
#. translators: %d is the number of seconds to wait.
|
||||
#, php-format
|
||||
msgid "Please wait %d seconds before uploading again."
|
||||
msgstr "Espera %d segundos antes de volver a subir."
|
||||
|
||||
msgid "File uploaded successfully!"
|
||||
msgstr "¡Archivo subido correctamente!"
|
||||
|
||||
msgid "Invalid test file name format."
|
||||
msgstr "Formato de nombre de archivo de prueba no válido."
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#, php-format
|
||||
msgid "File %s deleted successfully."
|
||||
msgstr "Archivo %s eliminado correctamente."
|
||||
|
||||
msgid "Host URL must start with \"https://\"."
|
||||
msgstr "La URL del host debe empezar por «https://»."
|
||||
|
||||
msgid ""
|
||||
"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."
|
||||
|
||||
msgid "S3 Host"
|
||||
msgstr "Host de S3"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
|
||||
msgid "S3-compatible endpoint URL. Must start with \"https://\"."
|
||||
msgstr "URL del endpoint compatible con S3. Debe empezar por «https://»."
|
||||
|
||||
msgid "Access Key ID"
|
||||
msgstr "ID de la clave de acceso"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
|
||||
msgid "Your S3 access key ID."
|
||||
msgstr "El ID de tu clave de acceso de S3."
|
||||
|
||||
msgid "Secret Access Key"
|
||||
msgstr "Clave de acceso secreta"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
|
||||
msgid "Your S3 secret access key."
|
||||
msgstr "Tu clave de acceso secreta de S3."
|
||||
|
||||
msgid "Bucket Name"
|
||||
msgstr "Nombre del depósito"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
|
||||
msgid "The name of your S3 bucket."
|
||||
msgstr "El nombre de tu depósito S3."
|
||||
|
||||
msgid "Region"
|
||||
msgstr "Región"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
|
||||
msgid "AWS region (e.g., us-east-1, eu-west-1)."
|
||||
msgstr "Región de AWS (por ejemplo, us-east-1, eu-west-1)."
|
||||
|
||||
msgid "Custom CDN Domain"
|
||||
msgstr "Dominio CDN personalizado"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
|
||||
msgid "Optional: Custom domain for serving media files."
|
||||
msgstr "Opcional: dominio personalizado para servir archivos multimedia."
|
||||
|
||||
msgid "Image Sub-sizes"
|
||||
msgstr "Subtamaños de imagen"
|
||||
|
||||
msgid "All registered sizes (WordPress default)"
|
||||
msgstr "Todos los tamaños registrados (predeterminado de WordPress)"
|
||||
|
||||
msgid "Only thumbnail (faster uploads)"
|
||||
msgstr "Solo miniatura (subidas más rápidas)"
|
||||
|
||||
msgid "No sub-sizes (original only)"
|
||||
msgstr "Sin subtamaños (solo el original)"
|
||||
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
msgstr "Definido en wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
|
||||
msgid ""
|
||||
"Reduces work for large uploads (e.g. camera files). Also disables the -"
|
||||
"scaled derivative in thumbnail/none modes."
|
||||
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."
|
||||
|
||||
msgid "Save Settings"
|
||||
msgstr "Guardar ajustes"
|
||||
|
||||
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."
|
||||
|
||||
msgid "Test Connection"
|
||||
msgstr "Probar conexión"
|
||||
|
||||
msgid "Test your S3 configuration to ensure everything is working correctly."
|
||||
msgstr "Prueba tu configuración S3 para asegurarte de que todo funciona correctamente."
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#, php-format
|
||||
msgid "File: %s"
|
||||
msgstr "Archivo: %s"
|
||||
|
||||
msgid "URL:"
|
||||
msgstr "URL:"
|
||||
|
||||
msgid "Delete this file"
|
||||
msgstr "Eliminar este archivo"
|
||||
|
||||
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."
|
||||
|
||||
msgid "Upload Test File"
|
||||
msgstr "Subir archivo de prueba"
|
||||
|
||||
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."
|
||||
|
||||
msgid "Every 5 Minutes"
|
||||
msgstr "Cada 5 minutos"
|
||||
|
||||
msgid "Security check failed"
|
||||
msgstr "Ha fallado la comprobación de seguridad"
|
||||
|
|
@ -1,120 +1,275 @@
|
|||
#, fuzzy
|
||||
# Copyright (C) 2026 ROBOTSTXT
|
||||
# This file is distributed under the GPL-3.0-or-later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: iDrivee2 Media Upload\n"
|
||||
"POT-Creation-Date: 2025-08-06 15:40+0200\n"
|
||||
"PO-Revision-Date: 2025-08-06 15:40+0200\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Project-Id-Version: iDrivee2 Media Upload 1.3.0\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"
|
||||
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
||||
"X-Generator: Poedit 3.6\n"
|
||||
"X-Poedit-Basepath: ..\n"
|
||||
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
||||
"X-Poedit-WPHeader: idrivee2-media-upload.php\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
"X-Poedit-KeywordsList: "
|
||||
"__;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
||||
"X-Poedit-SearchPath-0: .\n"
|
||||
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
|
||||
"X-Poedit-SearchPathExcluded-1: vendor\n"
|
||||
"POT-Creation-Date: 2026-07-18T13:20:23+00:00\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"X-Generator: WP-CLI 2.12.0\n"
|
||||
"X-Domain: idrivee2-media-upload\n"
|
||||
|
||||
#. translators: Admin menu title.
|
||||
#. translators: Admin menu label.
|
||||
#: idrivee2-media-upload.php:77 idrivee2-media-upload.php:79
|
||||
msgid "iDrivee2"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:122 idrivee2-media-upload.php:524
|
||||
msgid "Test S3 Connection"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:123
|
||||
msgid "Testing..."
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:124 idrivee2-media-upload.php:529
|
||||
msgid "Upload Test File"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:125
|
||||
msgid "Uploading..."
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s is the name of the missing constant.
|
||||
#: idrivee2-media-upload.php:162
|
||||
#, php-format
|
||||
msgid "Missing constant %s."
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:184
|
||||
msgid "Connection successful."
|
||||
msgstr ""
|
||||
|
||||
#. translators: Error message when no file is provided.
|
||||
#: idrivee2-media-upload.php:215
|
||||
msgid "No file provided."
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:472
|
||||
msgid "iDrivee2 Media Upload Settings"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:476
|
||||
msgid ""
|
||||
"To use iDrivee2 Media Upload, please add these constants to wp-config.php:"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:477
|
||||
msgid "HOST must begin with \"https://\"."
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:489
|
||||
msgid "Host"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:493
|
||||
msgid "Access Key"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:497
|
||||
msgid "Secret Key"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:501
|
||||
msgid "Bucket"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:505
|
||||
msgid "Region"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:509
|
||||
msgid "Domain"
|
||||
msgstr ""
|
||||
|
||||
#: idrivee2-media-upload.php:515
|
||||
msgid "Not defined"
|
||||
msgstr ""
|
||||
|
||||
#. Plugin Name of the plugin/theme
|
||||
#. Plugin Name of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "iDrivee2 Media Upload"
|
||||
msgstr ""
|
||||
|
||||
#. Plugin URI of the plugin/theme
|
||||
#. Plugin URI of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload"
|
||||
msgstr ""
|
||||
|
||||
#. Description of the plugin/theme
|
||||
msgid "Uploads media files to iDrivee2 (S3-compatible)."
|
||||
#. Description of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging."
|
||||
msgstr ""
|
||||
|
||||
#. Author of the plugin/theme
|
||||
#. Author of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "ROBOTSTXT"
|
||||
msgstr ""
|
||||
|
||||
#. Author URI of the plugin/theme
|
||||
#. Author URI of the plugin
|
||||
#: idrivee2-media-upload.php
|
||||
msgid "https://www.robotstxt.es/"
|
||||
msgstr ""
|
||||
|
||||
#. translators: Admin menu title.
|
||||
#: includes/class-admin-page.php:109
|
||||
#: includes/class-admin-page.php:595
|
||||
msgid "iDrivee2 Media Upload Settings"
|
||||
msgstr ""
|
||||
|
||||
#. translators: Admin menu label.
|
||||
#: includes/class-admin-page.php:111
|
||||
msgid "iDrivee2"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:156
|
||||
#: includes/class-admin-page.php:168
|
||||
#: includes/class-admin-page.php:180
|
||||
#: robotstxt-updater.php:394
|
||||
msgid "You do not have sufficient permissions to access this page."
|
||||
msgstr ""
|
||||
|
||||
#. 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 ""
|
||||
|
||||
#: includes/class-admin-page.php:222
|
||||
msgid "Configuration is incomplete. Please check your settings."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:243
|
||||
msgid "Connection successful! Your S3 configuration is working correctly."
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s is the error message from AWS.
|
||||
#: includes/class-admin-page.php:256
|
||||
#: includes/class-admin-page.php:361
|
||||
#: includes/class-admin-page.php:471
|
||||
#, php-format
|
||||
msgid "AWS Error: %s"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:257
|
||||
#: includes/class-admin-page.php:362
|
||||
#: includes/class-admin-page.php:472
|
||||
msgid "Unknown error"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s is the error message.
|
||||
#: includes/class-admin-page.php:271
|
||||
#: includes/class-admin-page.php:376
|
||||
#: includes/class-admin-page.php:486
|
||||
#, php-format
|
||||
msgid "Error: %s"
|
||||
msgstr ""
|
||||
|
||||
#. 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 ""
|
||||
|
||||
#: includes/class-admin-page.php:345
|
||||
msgid "File uploaded successfully!"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:426
|
||||
msgid "Invalid test file name format."
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#: includes/class-admin-page.php:455
|
||||
#, php-format
|
||||
msgid "File %s deleted successfully."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:517
|
||||
msgid "Host URL must start with \"https://\"."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:601
|
||||
msgid "Some settings are defined in wp-config.php and cannot be changed here. These fields are shown as read-only."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:612
|
||||
msgid "S3 Host"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:627
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_HOST)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:629
|
||||
msgid "S3-compatible endpoint URL. Must start with \"https://\"."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:638
|
||||
msgid "Access Key ID"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:653
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_KEY)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:655
|
||||
msgid "Your S3 access key ID."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:664
|
||||
msgid "Secret Access Key"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:679
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SECRET)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:681
|
||||
msgid "Your S3 secret access key."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:690
|
||||
msgid "Bucket Name"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:705
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_BUCKET)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:707
|
||||
msgid "The name of your S3 bucket."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:716
|
||||
msgid "Region"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:732
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_REGION)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:734
|
||||
msgid "AWS region (e.g., us-east-1, eu-west-1)."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:743
|
||||
msgid "Custom CDN Domain"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:758
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_DOMAIN)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:760
|
||||
msgid "Optional: Custom domain for serving media files."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:769
|
||||
msgid "Image Sub-sizes"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:779
|
||||
msgid "All registered sizes (WordPress default)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:780
|
||||
msgid "Only thumbnail (faster uploads)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:781
|
||||
msgid "No sub-sizes (original only)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:806
|
||||
msgid "Defined in wp-config.php (IDRIVEE2_MEDIA_SUBSIZES_MODE)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:808
|
||||
msgid "Reduces work for large uploads (e.g. camera files). Also disables the -scaled derivative in thumbnail/none modes."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:818
|
||||
#: includes/class-admin-page.php:828
|
||||
msgid "Save Settings"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:821
|
||||
msgid "To modify settings defined in wp-config.php, please edit your wp-config.php file directly."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:836
|
||||
#: includes/class-admin-page.php:887
|
||||
msgid "Test Connection"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:838
|
||||
msgid "Test your S3 configuration to ensure everything is working correctly."
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s is the file name.
|
||||
#: includes/class-admin-page.php:860
|
||||
#, php-format
|
||||
msgid "File: %s"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:866
|
||||
msgid "URL:"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:875
|
||||
msgid "Delete this file"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:892
|
||||
msgid "Test S3 Connection"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:895
|
||||
msgid "Verify that your S3 bucket is accessible with the configured credentials."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:901
|
||||
#: includes/class-admin-page.php:906
|
||||
msgid "Upload Test File"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-admin-page.php:909
|
||||
msgid "Upload a test file to S3 with a timestamped name (test-YYYYMMDDHHMMSS.txt). The file will remain in S3 until manually deleted."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-plugin.php:170
|
||||
msgid "Every 5 Minutes"
|
||||
msgstr ""
|
||||
|
||||
#: robotstxt-updater.php:389
|
||||
msgid "Security check failed"
|
||||
msgstr ""
|
||||
|
|
|
|||
39
readme.txt
39
readme.txt
|
|
@ -3,9 +3,9 @@ Contributors: robotstxt, javiercasares
|
|||
Tags: media, upload, s3, cdn, storage, idrivee2, cloud
|
||||
Requires at least: 4.1
|
||||
Tested up to: 7.1
|
||||
Stable tag: 1.2.1
|
||||
Stable tag: 1.3.0
|
||||
Requires PHP: 8.1
|
||||
Version: 1.2.1
|
||||
Version: 1.3.0
|
||||
License: GPL-3.0-or-later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
|
|
@ -199,6 +199,41 @@ PHP 8.2 or higher is required. The plugin uses strict type declarations and is t
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 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
|
||||
|
||||
= 1.2.1 =
|
||||
|
||||
_Release date: 2026-06-05_
|
||||
|
|
|
|||
10
update.json
10
update.json
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
"name": "iDrivee2 Media Upload",
|
||||
"slug": "idrivee2-media-upload",
|
||||
"version": "1.2.1",
|
||||
"download_url": "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload/releases/download/1.2.1/idrivee2-media-upload-1.2.1.zip",
|
||||
"version": "1.3.0",
|
||||
"download_url": "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload/releases/download/1.3.0/idrivee2-media-upload-1.3.0.zip",
|
||||
"requires": "4.1",
|
||||
"requires_php": "8.1",
|
||||
"tested": "7.1",
|
||||
"last_updated": "2026-06-05",
|
||||
"last_updated": "2026-07-18",
|
||||
"author": "ROBOTSTXT",
|
||||
"author_profile": "https://www.robotstxt.es/",
|
||||
"homepage": "https://git.robotstxt.es/ROBOTSTXT/idrivee2-media-upload",
|
||||
"description": "Uploads media files to iDrivee2 (S3-compatible) with enterprise-grade security and logging.",
|
||||
"changelog": "<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. Removed edit_attachment hook, added re-entry guard.</li><li><strong>Fixed:</strong> Fatal TypeError: fclose() on already-closed stream — AWS SDK closes streams after upload; added is_resource() check before fclose().</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><li><strong>Performance:</strong> Removed per-file headObject pre-check — single batch DB write for stats</li><li><strong>Changed:</strong> Hook priority lowered from 999 to 10</li></ul><h3>1.1.4 - 2026-06-02</h3><ul><li><strong>Added:</strong> Full dev tooling: PHPCS, PHPStan level 9, PHPUnit test suite (22 tests)</li><li><strong>Fixed:</strong> WP_Filesystem null guard, type safety on get_option/get_transient, dynamic asset version</li><li><strong>Changed:</strong> Tested up to WordPress 7.1, PHP 8.1-8.5, Requires at least 4.1</li></ul><h3>1.1.3 - 2026-02-04</h3><ul><li><strong>Fixed:</strong> Critical namespace issue with Robotstxt_Updater class causing fatal error</li><li><strong>Fixed:</strong> Plugin now loads correctly without PHP fatal errors</li></ul><h3>1.1.2 - 2026-02-04</h3><ul><li><strong>Changed:</strong> Deployment script updated to use PHP 8.2 as platform base for production builds</li><li><strong>Changed:</strong> Now uses composer update --no-dev for consistent dependency resolution</li><li><strong>Improved:</strong> Production packages guarantee PHP 8.2+ compatibility regardless of dev environment</li></ul><h3>1.1.1 - 2026-02-04</h3><ul><li><strong>Fixed:</strong> Deployment script now includes essential files (update.json, robotstxt-updater.php, readme.txt, changelog.txt)</li><li><strong>Improved:</strong> Production packages now contain all files required for automatic updates from Gitea</li></ul><h3>1.1.0 - 2026-02-04</h3><ul><li><strong>Changed:</strong> Added explicit PHP version requirement (>=8.2) to composer.json</li><li><strong>Changed:</strong> Updated update.json with correct plugin information</li><li><strong>Changed:</strong> Fixed Text Domain in robotstxt-updater.php to match plugin slug</li><li><strong>Fixed:</strong> Composer now validates PHP version during dependency installation</li><li><strong>Fixed:</strong> Plugin update system correctly identifies the plugin</li><li><strong>Fixed:</strong> Translations properly loaded for updater error messages</li><li><strong>Improved:</strong> All text domains now consistently use 'idrivee2-media-upload'</li></ul><h3>1.0.0 - 2026-02-03</h3><ul><li><strong>Release:</strong> First stable release</li><li><strong>Feature:</strong> Automatic upload of media files to iDrivee2 (S3-compatible storage)</li><li><strong>Feature:</strong> URL rewriting to serve media from CDN</li><li><strong>Feature:</strong> Local file deletion after successful upload</li><li><strong>Feature:</strong> Admin interface with connection and upload testing</li><li><strong>Security:</strong> Enterprise-grade security with nonce validation</li><li><strong>Architecture:</strong> Class-based modular architecture with dependency injection</li><li><strong>Testing:</strong> PHPUnit test structure and PHPStan static analysis</li><li><strong>Compatibility:</strong> WordPress 6.8+ and PHP 8.2+</li></ul>",
|
||||
"changelog": "<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>Added:</strong> In thumbnail/none modes, the -scaled derivative (big_image_size_threshold) is also disabled.</li><li><strong>Security:</strong> 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).</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. Removed edit_attachment hook, added re-entry guard.</li><li><strong>Fixed:</strong> Fatal TypeError: fclose() on already-closed stream — AWS SDK closes streams after upload; added is_resource() check before fclose().</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><li><strong>Performance:</strong> Removed per-file headObject pre-check — single batch DB write for stats</li><li><strong>Changed:</strong> Hook priority lowered from 999 to 10</li></ul><h3>1.1.4 - 2026-06-02</h3><ul><li><strong>Added:</strong> Full dev tooling: PHPCS, PHPStan level 9, PHPUnit test suite (22 tests)</li><li><strong>Fixed:</strong> WP_Filesystem null guard, type safety on get_option/get_transient, dynamic asset version</li><li><strong>Changed:</strong> Tested up to WordPress 7.1, PHP 8.1-8.5, Requires at least 4.1</li></ul><h3>1.1.3 - 2026-02-04</h3><ul><li><strong>Fixed:</strong> Critical namespace issue with Robotstxt_Updater class causing fatal error</li><li><strong>Fixed:</strong> Plugin now loads correctly without PHP fatal errors</li></ul><h3>1.1.2 - 2026-02-04</h3><ul><li><strong>Changed:</strong> Deployment script updated to use PHP 8.2 as platform base for production builds</li><li><strong>Changed:</strong> Now uses composer update --no-dev for consistent dependency resolution</li><li><strong>Improved:</strong> Production packages guarantee PHP 8.2+ compatibility regardless of dev environment</li></ul><h3>1.1.1 - 2026-02-04</h3><ul><li><strong>Fixed:</strong> Deployment script now includes essential files (update.json, robotstxt-updater.php, readme.txt, changelog.txt)</li><li><strong>Improved:</strong> Production packages now contain all files required for automatic updates from Gitea</li></ul><h3>1.1.0 - 2026-02-04</h3><ul><li><strong>Changed:</strong> Added explicit PHP version requirement (>=8.2) to composer.json</li><li><strong>Changed:</strong> Updated update.json with correct plugin information</li><li><strong>Changed:</strong> Fixed Text Domain in robotstxt-updater.php to match plugin slug</li><li><strong>Fixed:</strong> Composer now validates PHP version during dependency installation</li><li><strong>Fixed:</strong> Plugin update system correctly identifies the plugin</li><li><strong>Fixed:</strong> Translations properly loaded for updater error messages</li><li><strong>Improved:</strong> All text domains now consistently use 'idrivee2-media-upload'</li></ul><h3>1.0.0 - 2026-02-03</h3><ul><li><strong>Release:</strong> First stable release</li><li><strong>Feature:</strong> Automatic upload of media files to iDrivee2 (S3-compatible storage)</li><li><strong>Feature:</strong> URL rewriting to serve media from CDN</li><li><strong>Feature:</strong> Local file deletion after successful upload</li><li><strong>Feature:</strong> Admin interface with connection and upload testing</li><li><strong>Security:</strong> Enterprise-grade security with nonce validation</li><li><strong>Architecture:</strong> Class-based modular architecture with dependency injection</li><li><strong>Testing:</strong> PHPUnit test structure and PHPStan static analysis</li><li><strong>Compatibility:</strong> WordPress 6.8+ and PHP 8.2+</li></ul>",
|
||||
"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": "<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. Removed edit_attachment hook, added re-entry guard.</li><li><strong>Fixed:</strong> Fatal TypeError: fclose() on already-closed stream — AWS SDK closes streams after upload; added is_resource() check before fclose().</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><li><strong>Performance:</strong> Removed per-file headObject pre-check — single batch DB write for stats</li><li><strong>Changed:</strong> Hook priority lowered from 999 to 10</li></ul><h3>1.1.4 - 2026-06-02</h3><ul><li><strong>Added:</strong> Full dev tooling: PHPCS, PHPStan level 9, PHPUnit test suite (22 tests)</li><li><strong>Fixed:</strong> WP_Filesystem null guard, type safety on get_option/get_transient, dynamic asset version</li><li><strong>Changed:</strong> Tested up to WordPress 7.1, PHP 8.1-8.5, Requires at least 4.1</li></ul><h3>1.1.3 - 2026-02-04</h3><ul><li><strong>Fixed:</strong> Critical namespace issue with Robotstxt_Updater class causing fatal error</li><li><strong>Fixed:</strong> Plugin now loads correctly without PHP fatal errors</li></ul><h3>1.1.2 - 2026-02-04</h3><ul><li><strong>Changed:</strong> Deployment script updated to use PHP 8.2 as platform base for production builds</li><li><strong>Changed:</strong> Now uses composer update --no-dev for consistent dependency resolution</li><li><strong>Improved:</strong> Production packages guarantee PHP 8.2+ compatibility regardless of dev environment</li></ul><h3>1.1.1 - 2026-02-04</h3><ul><li><strong>Fixed:</strong> Deployment script now includes essential files (update.json, robotstxt-updater.php, readme.txt, changelog.txt)</li><li><strong>Improved:</strong> Production packages now contain all files required for automatic updates from Gitea</li></ul><h3>1.1.0 - 2026-02-04</h3><ul><li><strong>Changed:</strong> Added explicit PHP version requirement (>=8.2) to composer.json</li><li><strong>Changed:</strong> Updated update.json with correct plugin information</li><li><strong>Changed:</strong> Fixed Text Domain in robotstxt-updater.php to match plugin slug</li><li><strong>Fixed:</strong> Composer now validates PHP version during dependency installation</li><li><strong>Fixed:</strong> Plugin update system correctly identifies the plugin</li><li><strong>Fixed:</strong> Translations properly loaded for updater error messages</li><li><strong>Improved:</strong> All text domains now consistently use 'idrivee2-media-upload'</li></ul><h3>1.0.0 - 2026-02-03</h3><ul><li><strong>Release:</strong> First stable release</li><li><strong>Feature:</strong> Automatic upload of media files to iDrivee2 (S3-compatible storage)</li><li><strong>Feature:</strong> URL rewriting to serve media from CDN</li><li><strong>Feature:</strong> Local file deletion after successful upload</li><li><strong>Feature:</strong> Admin interface with connection and upload testing</li><li><strong>Security:</strong> Enterprise-grade security with nonce validation</li><li><strong>Architecture:</strong> Class-based modular architecture with dependency injection</li><li><strong>Testing:</strong> PHPUnit test structure and PHPStan static analysis</li><li><strong>Compatibility:</strong> WordPress 6.8+ and PHP 8.2+</li></ul>"
|
||||
"changelog": "<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>Added:</strong> In thumbnail/none modes, the -scaled derivative (big_image_size_threshold) is also disabled.</li><li><strong>Security:</strong> 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).</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. Removed edit_attachment hook, added re-entry guard.</li><li><strong>Fixed:</strong> Fatal TypeError: fclose() on already-closed stream — AWS SDK closes streams after upload; added is_resource() check before fclose().</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><li><strong>Performance:</strong> Removed per-file headObject pre-check — single batch DB write for stats</li><li><strong>Changed:</strong> Hook priority lowered from 999 to 10</li></ul><h3>1.1.4 - 2026-06-02</h3><ul><li><strong>Added:</strong> Full dev tooling: PHPCS, PHPStan level 9, PHPUnit test suite (22 tests)</li><li><strong>Fixed:</strong> WP_Filesystem null guard, type safety on get_option/get_transient, dynamic asset version</li><li><strong>Changed:</strong> Tested up to WordPress 7.1, PHP 8.1-8.5, Requires at least 4.1</li></ul><h3>1.1.3 - 2026-02-04</h3><ul><li><strong>Fixed:</strong> Critical namespace issue with Robotstxt_Updater class causing fatal error</li><li><strong>Fixed:</strong> Plugin now loads correctly without PHP fatal errors</li></ul><h3>1.1.2 - 2026-02-04</h3><ul><li><strong>Changed:</strong> Deployment script updated to use PHP 8.2 as platform base for production builds</li><li><strong>Changed:</strong> Now uses composer update --no-dev for consistent dependency resolution</li><li><strong>Improved:</strong> Production packages guarantee PHP 8.2+ compatibility regardless of dev environment</li></ul><h3>1.1.1 - 2026-02-04</h3><ul><li><strong>Fixed:</strong> Deployment script now includes essential files (update.json, robotstxt-updater.php, readme.txt, changelog.txt)</li><li><strong>Improved:</strong> Production packages now contain all files required for automatic updates from Gitea</li></ul><h3>1.1.0 - 2026-02-04</h3><ul><li><strong>Changed:</strong> Added explicit PHP version requirement (>=8.2) to composer.json</li><li><strong>Changed:</strong> Updated update.json with correct plugin information</li><li><strong>Changed:</strong> Fixed Text Domain in robotstxt-updater.php to match plugin slug</li><li><strong>Fixed:</strong> Composer now validates PHP version during dependency installation</li><li><strong>Fixed:</strong> Plugin update system correctly identifies the plugin</li><li><strong>Fixed:</strong> Translations properly loaded for updater error messages</li><li><strong>Improved:</strong> All text domains now consistently use 'idrivee2-media-upload'</li></ul><h3>1.0.0 - 2026-02-03</h3><ul><li><strong>Release:</strong> First stable release</li><li><strong>Feature:</strong> Automatic upload of media files to iDrivee2 (S3-compatible storage)</li><li><strong>Feature:</strong> URL rewriting to serve media from CDN</li><li><strong>Feature:</strong> Local file deletion after successful upload</li><li><strong>Feature:</strong> Admin interface with connection and upload testing</li><li><strong>Security:</strong> Enterprise-grade security with nonce validation</li><li><strong>Architecture:</strong> Class-based modular architecture with dependency injection</li><li><strong>Testing:</strong> PHPUnit test structure and PHPStan static analysis</li><li><strong>Compatibility:</strong> WordPress 6.8+ and PHP 8.2+</li></ul>"
|
||||
},
|
||||
"banners": {
|
||||
"low": "",
|
||||
|
|
|
|||
4
vendor/aws/aws-sdk-php/CODE_OF_CONDUCT.md
vendored
4
vendor/aws/aws-sdk-php/CODE_OF_CONDUCT.md
vendored
|
|
@ -1,4 +0,0 @@
|
|||
## Code of Conduct
|
||||
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
|
||||
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
|
||||
opensource-codeofconduct@amazon.com with any additional questions or comments.
|
||||
4
vendor/aws/aws-sdk-php/CRT_INSTRUCTIONS.md
vendored
4
vendor/aws/aws-sdk-php/CRT_INSTRUCTIONS.md
vendored
|
|
@ -1,4 +0,0 @@
|
|||
## Building and enabling the Common Run Time
|
||||
|
||||
1. **Follow instructions on crt repo** – Clone and build the repo as shown [here][https://github.com/awslabs/aws-crt-php].
|
||||
1. **Enable the CRT** – add the following line to your php.ini file `extension=path/to/aws-crt-php/modules/awscrt.so`
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
# Overview
|
||||
|
||||
This page describes the support policy for the Amazon S3 Encryption Client for PHP. We regularly provide the Amazon S3 Encryption Client for PHP with updates that may contain support for new or updated APIs, new features, enhancements, bug fixes, security patches, or documentation updates. Updates may also address changes with dependencies, language runtimes, and operating systems.
|
||||
|
||||
We recommend users to stay up-to-date with Amazon S3 Encryption Client for PHP releases to keep up with the latest features, security updates, and underlying dependencies. Continued use of an unsupported SDK version is not recommended and is done at the user's discretion.
|
||||
|
||||
# Major Version Lifecycle
|
||||
|
||||
The Amazon S3 Encryption Client for Go follows the same major version lifecycle as the AWS SDK. For details on this lifecycle, see [AWS SDKs and Tools Maintenance Policy](https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html#version-life-cycle).
|
||||
|
||||
# Version Support Matrix
|
||||
|
||||
This table describes the current support status of each major version of the Amazon S3 Encryption Client for PHP. It also shows the next status each major version will transition to, and the date at which that transition will happen.
|
||||
|
||||
| Major version | Current status | Next status | Next status date |
|
||||
|--------------|----------------|-------------|------------------|
|
||||
| 3.x | General Availability | - | - |
|
||||
| 2.x | General Availability | Maintenance | 2026-06-15 |
|
||||
| 1.x | End of Support | - | - |
|
||||
5
vendor/composer/autoload_classmap.php
vendored
5
vendor/composer/autoload_classmap.php
vendored
|
|
@ -1299,14 +1299,18 @@ return array(
|
|||
'GuzzleHttp\\Handler\\CurlHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlHandler.php',
|
||||
'GuzzleHttp\\Handler\\CurlMultiHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php',
|
||||
'GuzzleHttp\\Handler\\CurlShareHandleState' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlShareHandleState.php',
|
||||
'GuzzleHttp\\Handler\\CurlVersion' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlVersion.php',
|
||||
'GuzzleHttp\\Handler\\EasyHandle' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/EasyHandle.php',
|
||||
'GuzzleHttp\\Handler\\HeaderProcessor' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php',
|
||||
'GuzzleHttp\\Handler\\MockHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/MockHandler.php',
|
||||
'GuzzleHttp\\Handler\\Proxy' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/Proxy.php',
|
||||
'GuzzleHttp\\Handler\\ProxyEnvironment' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/ProxyEnvironment.php',
|
||||
'GuzzleHttp\\Handler\\StreamHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/StreamHandler.php',
|
||||
'GuzzleHttp\\Handler\\TlsVersion' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/TlsVersion.php',
|
||||
'GuzzleHttp\\MessageFormatter' => $vendorDir . '/guzzlehttp/guzzle/src/MessageFormatter.php',
|
||||
'GuzzleHttp\\MessageFormatterInterface' => $vendorDir . '/guzzlehttp/guzzle/src/MessageFormatterInterface.php',
|
||||
'GuzzleHttp\\Middleware' => $vendorDir . '/guzzlehttp/guzzle/src/Middleware.php',
|
||||
'GuzzleHttp\\Multiplexing' => $vendorDir . '/guzzlehttp/guzzle/src/Multiplexing.php',
|
||||
'GuzzleHttp\\Pool' => $vendorDir . '/guzzlehttp/guzzle/src/Pool.php',
|
||||
'GuzzleHttp\\PrepareBodyMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php',
|
||||
'GuzzleHttp\\Promise\\AggregateException' => $vendorDir . '/guzzlehttp/promises/src/AggregateException.php',
|
||||
|
|
@ -1414,5 +1418,6 @@ return array(
|
|||
'iDrivee2Media\\Plugin' => $baseDir . '/includes/class-plugin.php',
|
||||
'iDrivee2Media\\Rate_Limiter' => $baseDir . '/includes/class-rate-limiter.php',
|
||||
'iDrivee2Media\\S3_Client_Factory' => $baseDir . '/includes/class-s3-client-factory.php',
|
||||
'iDrivee2Media\\Subsize_Filter' => $baseDir . '/includes/class-subsize-filter.php',
|
||||
'iDrivee2Media\\URL_Rewriter' => $baseDir . '/includes/class-url-rewriter.php',
|
||||
);
|
||||
|
|
|
|||
5
vendor/composer/autoload_static.php
vendored
5
vendor/composer/autoload_static.php
vendored
|
|
@ -1388,14 +1388,18 @@ class ComposerStaticInite60858b25bb9b11d51011ff69c492447
|
|||
'GuzzleHttp\\Handler\\CurlHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlHandler.php',
|
||||
'GuzzleHttp\\Handler\\CurlMultiHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php',
|
||||
'GuzzleHttp\\Handler\\CurlShareHandleState' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlShareHandleState.php',
|
||||
'GuzzleHttp\\Handler\\CurlVersion' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlVersion.php',
|
||||
'GuzzleHttp\\Handler\\EasyHandle' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/EasyHandle.php',
|
||||
'GuzzleHttp\\Handler\\HeaderProcessor' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php',
|
||||
'GuzzleHttp\\Handler\\MockHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/MockHandler.php',
|
||||
'GuzzleHttp\\Handler\\Proxy' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/Proxy.php',
|
||||
'GuzzleHttp\\Handler\\ProxyEnvironment' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/ProxyEnvironment.php',
|
||||
'GuzzleHttp\\Handler\\StreamHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/StreamHandler.php',
|
||||
'GuzzleHttp\\Handler\\TlsVersion' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/TlsVersion.php',
|
||||
'GuzzleHttp\\MessageFormatter' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/MessageFormatter.php',
|
||||
'GuzzleHttp\\MessageFormatterInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/MessageFormatterInterface.php',
|
||||
'GuzzleHttp\\Middleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Middleware.php',
|
||||
'GuzzleHttp\\Multiplexing' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Multiplexing.php',
|
||||
'GuzzleHttp\\Pool' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Pool.php',
|
||||
'GuzzleHttp\\PrepareBodyMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php',
|
||||
'GuzzleHttp\\Promise\\AggregateException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/AggregateException.php',
|
||||
|
|
@ -1503,6 +1507,7 @@ class ComposerStaticInite60858b25bb9b11d51011ff69c492447
|
|||
'iDrivee2Media\\Plugin' => __DIR__ . '/../..' . '/includes/class-plugin.php',
|
||||
'iDrivee2Media\\Rate_Limiter' => __DIR__ . '/../..' . '/includes/class-rate-limiter.php',
|
||||
'iDrivee2Media\\S3_Client_Factory' => __DIR__ . '/../..' . '/includes/class-s3-client-factory.php',
|
||||
'iDrivee2Media\\Subsize_Filter' => __DIR__ . '/../..' . '/includes/class-subsize-filter.php',
|
||||
'iDrivee2Media\\URL_Rewriter' => __DIR__ . '/../..' . '/includes/class-url-rewriter.php',
|
||||
);
|
||||
|
||||
|
|
|
|||
100
vendor/composer/installed.json
vendored
100
vendor/composer/installed.json
vendored
|
|
@ -159,27 +159,27 @@
|
|||
},
|
||||
{
|
||||
"name": "guzzlehttp/guzzle",
|
||||
"version": "7.11.0",
|
||||
"version_normalized": "7.11.0.0",
|
||||
"version": "7.15.0",
|
||||
"version_normalized": "7.15.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/guzzle.git",
|
||||
"reference": "c987f8ce84b8434fa430795eca0f3430663da72b"
|
||||
"reference": "90bd104afeb0fcc2190c9eb6fd8a441447e4b30d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/c987f8ce84b8434fa430795eca0f3430663da72b",
|
||||
"reference": "c987f8ce84b8434fa430795eca0f3430663da72b",
|
||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/90bd104afeb0fcc2190c9eb6fd8a441447e4b30d",
|
||||
"reference": "90bd104afeb0fcc2190c9eb6fd8a441447e4b30d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"guzzlehttp/promises": "^2.5",
|
||||
"guzzlehttp/psr7": "^2.11",
|
||||
"guzzlehttp/promises": "^2.5.1",
|
||||
"guzzlehttp/psr7": "^2.13",
|
||||
"php": "^7.2.5 || ^8.0",
|
||||
"psr/http-client": "^1.0",
|
||||
"symfony/deprecation-contracts": "^2.5 || ^3.0",
|
||||
"symfony/polyfill-php80": "^1.24"
|
||||
"symfony/polyfill-php80": "^1.25"
|
||||
},
|
||||
"provide": {
|
||||
"psr/http-client-implementation": "1.0"
|
||||
|
|
@ -187,8 +187,8 @@
|
|||
"require-dev": {
|
||||
"bamarni/composer-bin-plugin": "^1.8.2",
|
||||
"ext-curl": "*",
|
||||
"guzzle/client-integration-tests": "3.0.2",
|
||||
"guzzlehttp/test-server": "^0.4",
|
||||
"guzzle/client-integration-tests": "3.0.3",
|
||||
"guzzlehttp/test-server": "^0.7",
|
||||
"php-http/message-factory": "^1.1",
|
||||
"phpunit/phpunit": "^8.5.52 || ^9.6.34",
|
||||
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
||||
|
|
@ -198,7 +198,7 @@
|
|||
"ext-intl": "Required for Internationalized Domain Name (IDN) support",
|
||||
"psr/log": "Required for using the Log middleware"
|
||||
},
|
||||
"time": "2026-06-02T12:40:51+00:00",
|
||||
"time": "2026-07-17T12:26:48+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"bamarni-bin": {
|
||||
|
|
@ -270,7 +270,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/guzzle/issues",
|
||||
"source": "https://github.com/guzzle/guzzle/tree/7.11.0"
|
||||
"source": "https://github.com/guzzle/guzzle/tree/7.15.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -290,17 +290,17 @@
|
|||
},
|
||||
{
|
||||
"name": "guzzlehttp/promises",
|
||||
"version": "2.5.0",
|
||||
"version_normalized": "2.5.0.0",
|
||||
"version": "2.5.1",
|
||||
"version_normalized": "2.5.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/promises.git",
|
||||
"reference": "4360e982f87f5f258bf872d094647791db2f4c8e"
|
||||
"reference": "9ad1e4fc607446a055b95870c7f668e93b5cff29"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/4360e982f87f5f258bf872d094647791db2f4c8e",
|
||||
"reference": "4360e982f87f5f258bf872d094647791db2f4c8e",
|
||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/9ad1e4fc607446a055b95870c7f668e93b5cff29",
|
||||
"reference": "9ad1e4fc607446a055b95870c7f668e93b5cff29",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -311,7 +311,7 @@
|
|||
"bamarni/composer-bin-plugin": "^1.8.2",
|
||||
"phpunit/phpunit": "^8.5.52 || ^9.6.34"
|
||||
},
|
||||
"time": "2026-06-02T12:23:43+00:00",
|
||||
"time": "2026-07-08T15:48:39+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"bamarni-bin": {
|
||||
|
|
@ -357,7 +357,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/promises/issues",
|
||||
"source": "https://github.com/guzzle/promises/tree/2.5.0"
|
||||
"source": "https://github.com/guzzle/promises/tree/2.5.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -377,17 +377,17 @@
|
|||
},
|
||||
{
|
||||
"name": "guzzlehttp/psr7",
|
||||
"version": "2.11.0",
|
||||
"version_normalized": "2.11.0.0",
|
||||
"version": "2.13.0",
|
||||
"version_normalized": "2.13.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/psr7.git",
|
||||
"reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f"
|
||||
"reference": "dad89620b7a6edb60c15858442eb2e408b45d8f4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/bbb5e61349fa5cb822b3e87842b951088b76b81f",
|
||||
"reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/dad89620b7a6edb60c15858442eb2e408b45d8f4",
|
||||
"reference": "dad89620b7a6edb60c15858442eb2e408b45d8f4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -396,7 +396,7 @@
|
|||
"psr/http-message": "^1.1 || ^2.0",
|
||||
"ralouphie/getallheaders": "^3.0",
|
||||
"symfony/deprecation-contracts": "^2.5 || ^3.0",
|
||||
"symfony/polyfill-php80": "^1.24"
|
||||
"symfony/polyfill-php80": "^1.25"
|
||||
},
|
||||
"provide": {
|
||||
"psr/http-factory-implementation": "1.0",
|
||||
|
|
@ -411,7 +411,7 @@
|
|||
"suggest": {
|
||||
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
||||
},
|
||||
"time": "2026-06-02T12:30:48+00:00",
|
||||
"time": "2026-07-16T22:23:49+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"bamarni-bin": {
|
||||
|
|
@ -479,7 +479,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/psr7/issues",
|
||||
"source": "https://github.com/guzzle/psr7/tree/2.11.0"
|
||||
"source": "https://github.com/guzzle/psr7/tree/2.13.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -499,17 +499,17 @@
|
|||
},
|
||||
{
|
||||
"name": "mtdowling/jmespath.php",
|
||||
"version": "2.8.0",
|
||||
"version_normalized": "2.8.0.0",
|
||||
"version": "2.9.2",
|
||||
"version_normalized": "2.9.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jmespath/jmespath.php.git",
|
||||
"reference": "a2a865e05d5f420b50cc2f85bb78d565db12a6bc"
|
||||
"reference": "2157c5e50e813ec6a96c1eed3be7f64a20fb32a8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/a2a865e05d5f420b50cc2f85bb78d565db12a6bc",
|
||||
"reference": "a2a865e05d5f420b50cc2f85bb78d565db12a6bc",
|
||||
"url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/2157c5e50e813ec6a96c1eed3be7f64a20fb32a8",
|
||||
"reference": "2157c5e50e813ec6a96c1eed3be7f64a20fb32a8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -518,16 +518,16 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"composer/xdebug-handler": "^3.0.3",
|
||||
"phpunit/phpunit": "^8.5.33"
|
||||
"phpunit/phpunit": "^8.5.52"
|
||||
},
|
||||
"time": "2024-09-04T18:46:31+00:00",
|
||||
"time": "2026-07-06T18:56:19+00:00",
|
||||
"bin": [
|
||||
"bin/jp.php"
|
||||
],
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.8-dev"
|
||||
"dev-master": "2.9-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
|
|
@ -562,7 +562,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/jmespath/jmespath.php/issues",
|
||||
"source": "https://github.com/jmespath/jmespath.php/tree/2.8.0"
|
||||
"source": "https://github.com/jmespath/jmespath.php/tree/2.9.2"
|
||||
},
|
||||
"install-path": "../mtdowling/jmespath.php"
|
||||
},
|
||||
|
|
@ -784,23 +784,23 @@
|
|||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
"version": "v3.7.0",
|
||||
"version_normalized": "3.7.0.0",
|
||||
"version": "v3.7.1",
|
||||
"version_normalized": "3.7.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||
"reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b"
|
||||
"reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/50f59d1f3ca46d41ac911f97a78626b6756af35b",
|
||||
"reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/f3202fa1b5097b0af062dc978b32ecf63404e31d",
|
||||
"reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=8.1"
|
||||
},
|
||||
"time": "2026-04-13T15:52:40+00:00",
|
||||
"time": "2026-06-05T06:23:12+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
|
|
@ -834,7 +834,7 @@
|
|||
"description": "A generic function and convention to trigger deprecation notices",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.0"
|
||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -1018,17 +1018,17 @@
|
|||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
"version": "v1.38.1",
|
||||
"version_normalized": "1.38.1.0",
|
||||
"version": "v1.38.2",
|
||||
"version_normalized": "1.38.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92"
|
||||
"reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/14c5439eec4ccff081ac14eca2dc57feb2a66d92",
|
||||
"reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6",
|
||||
"reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -1041,7 +1041,7 @@
|
|||
"suggest": {
|
||||
"ext-mbstring": "For best performance"
|
||||
},
|
||||
"time": "2026-05-26T12:51:13+00:00",
|
||||
"time": "2026-05-27T06:59:30+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
|
|
@ -1082,7 +1082,7 @@
|
|||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.1"
|
||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue