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:
@@ -44,8 +44,9 @@ final class YoutubeFacadeHooksRegistrar
|
|||||||
*/
|
*/
|
||||||
public function enqueueAssets(): void
|
public function enqueueAssets(): void
|
||||||
{
|
{
|
||||||
// Only on single posts where videos might appear
|
// Only on singular content (posts, pages, custom post types)
|
||||||
if (!is_single()) {
|
// Changed from is_single() to is_singular() to cover all content types
|
||||||
|
if (!is_singular()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user