Skip to content

Commit

Permalink
Fix undefined variable; remove unused WP_Scripts class
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Jan 9, 2024
1 parent 6fea79a commit 1f705f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/class-convertkit-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -1497,8 +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='" . $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 1f705f3

Please # to comment.