From 096f9716ef3f7e6fe3260db584caaac3d5790c43 Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Thu, 27 Nov 2025 14:41:42 -0600 Subject: [PATCH] fix(youtube-facade): use is_singular() instead of is_single() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed condition from is_single() to is_singular() to ensure YouTube facade assets load on all singular content types. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../Infrastructure/Wordpress/YoutubeFacadeHooksRegistrar.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Public/YoutubeFacade/Infrastructure/Wordpress/YoutubeFacadeHooksRegistrar.php b/Public/YoutubeFacade/Infrastructure/Wordpress/YoutubeFacadeHooksRegistrar.php index 949cfda9..2ad9537b 100644 --- a/Public/YoutubeFacade/Infrastructure/Wordpress/YoutubeFacadeHooksRegistrar.php +++ b/Public/YoutubeFacade/Infrastructure/Wordpress/YoutubeFacadeHooksRegistrar.php @@ -44,8 +44,9 @@ final class YoutubeFacadeHooksRegistrar */ public function enqueueAssets(): void { - // Only on single posts where videos might appear - if (!is_single()) { + // Only on singular content (posts, pages, custom post types) + // Changed from is_single() to is_singular() to cover all content types + if (!is_singular()) { return; }