[Plugin: Events Manager] WP_PLUGIN_URL and https
-
WP_PLUGIN_URL is used in events-manager.php and admin/em-admin.php (EM 4.14) for loading some scripts, but WP_PLUGIN_URL isn’t https aware (Determining_Plugin_and_Content_Directories), plugins_url() should be used instead.
Here are the diffs:
events-manager.php179c179 < wp_enqueue_script('events-manager', WP_PLUGIN_URL.'/events-manager/includes/js/events-manager.js', array('jquery', 'jquery-ui-core','jquery-ui-widget','jquery-ui-position')); //jQuery will load as dependency --- > wp_enqueue_script('events-manager', plugins_url('/events-manager/includes/js/events-manager.js', __FILE__), array('jquery', 'jquery-ui-core','jquery-ui-widget','jquery-ui-position')); //jQuery will load as dependency
admin/em-admin.php
145,146c145,146 < //wp_enqueue_script('em-ui-js', WP_PLUGIN_URL.'/events-manager/includes/js/jquery-ui-1.8.5.custom.min.js', array('jquery', 'jquery-ui-core')); < wp_enqueue_script('events-manager', WP_PLUGIN_URL.'/events-manager/includes/js/events-manager.js', array('jquery', 'jquery-ui-core','jquery-ui-widget','jquery-ui-position')); --- > //wp_enqueue_script('em-ui-js', plugins_url('/events-manager/includes/js/jquery-ui-1.8.5.custom.min.js', __FILE__), array('jquery', 'jquery-ui-core')); > wp_enqueue_script('events-manager', plugins_url('/events-manager/includes/js/events-manager.js', __FILE__), array('jquery', 'jquery-ui-core','jquery-ui-widget','jquery-ui-position')); 149c149 < wp_enqueue_script('em-timeentry', WP_PLUGIN_URL.'/events-manager/includes/js/timeentry/jquery.timeentry.js', array('jquery')); --- > wp_enqueue_script('em-timeentry', plugins_url('/events-manager/includes/js/timeentry/jquery.timeentry.js', __FILE__), array('jquery'));
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Events Manager] WP_PLUGIN_URL and https’ is closed to new replies.