From e8a45e90687e7a705819186ec377884590747ade Mon Sep 17 00:00:00 2001 From: Terence Ong Date: Tue, 7 Apr 2026 16:14:18 +0700 Subject: [PATCH] fix: defer log viewer JS until DOM ready to resolve peptideNewsAdmin reference The inline log viewer script was executing before wp_localize_script had defined peptideNewsAdmin. Switching from an IIFE to jQuery document.ready ensures the localized object is available. Co-Authored-By: Claude Opus 4.6 --- admin/class-peptide-news-admin.php | 4 ++-- peptide-news-plugin/admin/class-peptide-news-admin.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/class-peptide-news-admin.php b/admin/class-peptide-news-admin.php index 75d085a..b4371fb 100644 --- a/admin/class-peptide-news-admin.php +++ b/admin/class-peptide-news-admin.php @@ -753,7 +753,7 @@ class Peptide_News_Admin { ?>