Problem with https
-
There is a problem when the site is accessed vi https while a http url is configured as siteurl. Due to an issue in WordPress that has been unresolved for 4 years the constant WP_CONTENT_URL always contains the configured protocol, even when it is accessed with the other one.
I worked around it by using get_bloginfo(‘siteurl’) instead of the constant:
wp_enqueue_script('jquery.fancybox', get_bloginfo('siteurl').'/wp-contenti/plugins/fancy-box/jquery.fancybox.js', array('jquery'), '1.2.6');
etc.
- The topic ‘Problem with https’ is closed to new replies.