Skip to content

Commit

Permalink
Merge pull request #32 from ConvertKit/landing-pages-remove-jquery
Browse files Browse the repository at this point in the history
Landing Pages: Remove jQuery
  • Loading branch information
n7studios authored Jan 11, 2024
2 parents 7e6e33e + 85327cf commit fadfac0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/class-convertkit-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -1497,9 +1497,7 @@ public function get_landing_page_html( $url ) {
// Inject JS for subscriber forms to work.
// wp_enqueue_script() isn't called when we load a Landing Page, so we can't use it.
// phpcs:disable WordPress.WP.EnqueuedResources
$scripts = new WP_Scripts();
$script = "<script type='text/javascript' src='" . trailingslashit( $scripts->base_url ) . "wp-includes/js/jquery/jquery.js?ver=1.4.0'></script>";
$script .= "<script type='text/javascript' src='" . $this->plugin_url . 'resources/frontend/js/convertkit.js?ver=' . $this->plugin_version . "'></script>";
$script = "<script type='text/javascript' src='" . $this->plugin_url . 'resources/frontend/js/convertkit.js?ver=' . $this->plugin_version . "'></script>";
$script .= "<script type='text/javascript'>/* <![CDATA[ */var convertkit = {\"ajaxurl\":\"" . admin_url( 'admin-ajax.php' ) . '"};/* ]]> */</script>';
// phpcs:enable

Expand Down

0 comments on commit fadfac0

Please # to comment.