fix(youtube-facade): use is_singular() instead of is_single()

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 <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-27 14:41:42 -06:00
parent 2f19a7c077
commit 096f9716ef

View File

@@ -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;
}