From 42fa8304ddb811b0f725f245130f70c0f5e86a6c Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 04 Nov 2025 06:12:02 +0000
Subject: [PATCH] =Refactored LoginManager to be more extensible and configurable, as well as an AjaxRateLimiter
---
inc/helpers/media.php | 28 ----------------------------
1 files changed, 0 insertions(+), 28 deletions(-)
diff --git a/inc/helpers/media.php b/inc/helpers/media.php
index 99bda69..4346f65 100644
--- a/inc/helpers/media.php
+++ b/inc/helpers/media.php
@@ -32,31 +32,3 @@
</dialog>
<?php
}
-
-function jvbRenderImageForm(int $attachmentId) {
- if (!$attachmentId) return '';
-
- $url = wp_get_attachment_image_url($attachmentId, 'medium');
- $title = get_the_title($attachmentId);
- $alt = get_post_meta($attachmentId, '_wp_attachment_image_alt', true);
- $caption = wp_get_attachment_caption($attachmentId);
-
- ob_start();
- ?>
- <div class="upload-item existing" data-attachment-id="<?= $attachmentId ?>">
- <div class="preview">
- <img src="<?= esc_url($url) ?>" alt="<?= esc_attr($alt) ?>">
- <div class="overlay">
- <div class="actions">
- <button type="button" class="remove" title="Remove">
- <span class="screen-reader-text">Remove image</span>
- ×
- </button>
- </div>
- </div>
- </div>
- <?= jvbImageMeta() ?>
- </div>
- <?php
- return ob_get_clean();
-}
--
Gitblit v1.10.0