nstaeger / wp-post-email-notification

A WordPress plugin sending email notifications to subscribers when a new post is published
4 stars 1 forks source link

wrong wp_localize_script call #18

Open xaviercshp opened 3 years ago

xaviercshp commented 3 years ago

one of your vendor scripts is calling wp_localize_script wrong the last param should be an array here

plugins/wp-post-email-notification/vendor/nstaeger/cms-plugin-framework/src/Broker/Wordpress/WordpressAssetBroker.php: wp_localize_script($asset->getName(), 'ajaxurl', admin_url('admin-ajax.php'));

should be

./assets/plugins/wp-post-email-notification/vendor/nstaeger/cms-plugin-framework/src/Broker/Wordpress/WordpressAssetBroker.php: wp_localize_script($asset->getName(), 'ajaxurl', array ( admin_url('admin-ajax.php') ) );