From 0f82f739e1cf05ea41be1a8b42bd77f4e06fae14 Mon Sep 17 00:00:00 2001 From: Nol de Roos <108540791+nolderoos@users.noreply.github.com> Date: Tue, 12 May 2026 21:31:40 +0200 Subject: [PATCH 1/2] fix: drop unused wp-admin/includes/media.php require (#12) --- includes/class-opentrust-io.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/class-opentrust-io.php b/includes/class-opentrust-io.php index f1d37e2..5f19d63 100644 --- a/includes/class-opentrust-io.php +++ b/includes/class-opentrust-io.php @@ -628,7 +628,6 @@ private static function sideload_bundled_media(array $media, string $zip_path, a } require_once ABSPATH . 'wp-admin/includes/file.php'; - require_once ABSPATH . 'wp-admin/includes/media.php'; require_once ABSPATH . 'wp-admin/includes/image.php'; $map = []; From cb748d10e20df7668ccd0267615072ddd0ee1e60 Mon Sep 17 00:00:00 2001 From: Nol de Roos <108540791+nolderoos@users.noreply.github.com> Date: Tue, 12 May 2026 22:25:01 +0200 Subject: [PATCH 2/2] chore: regenerate POT --- languages/opentrust.pot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/languages/opentrust.pot b/languages/opentrust.pot index 716de4f..b9d9971 100644 --- a/languages/opentrust.pot +++ b/languages/opentrust.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-05-11T15:00:11+00:00\n" +"POT-Creation-Date: 2026-05-12T20:24:53+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: opentrust\n" @@ -1739,23 +1739,23 @@ msgstr "" msgid "manifest.json could not be parsed." msgstr "" -#: includes/class-opentrust-io.php:637 +#: includes/class-opentrust-io.php:636 msgid "Could not reopen archive for media import." msgstr "" #. translators: %s: media path -#: includes/class-opentrust-io.php:652 +#: includes/class-opentrust-io.php:651 #, php-format msgid "Bundled media missing during import: %s" msgstr "" #. translators: %s: filename -#: includes/class-opentrust-io.php:672 +#: includes/class-opentrust-io.php:671 #, php-format msgid "Could not write attachment file: %s" msgstr "" -#: includes/class-opentrust-io.php:690 +#: includes/class-opentrust-io.php:689 msgid "Could not create attachment." msgstr ""