Skip to content

Subscriptions: check if jQuery is loaded before to use it for Subscriptions #2032

@jeherve

Description

@jeherve

We use jQuery in the subscription widget here:
https://github.com/Automattic/jetpack/blob/3.5/modules/subscriptions.php#L701

However some themes or plugins change the way jQuery is enqueued, and enqueue it in the footer instead, after our function has been added, thus creating a Javascript error.

We should handle these cases a bit better.

Reported here:
https://wordpress.org/support/topic/feature-request-subscription-module?replies=1&view=all

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] SubscriptionsAll subscription-related things such as paid and unpaid, user management, and newsletter settings.[Status] Invalid

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions