On the blogs I administer I use
wp-config.phpwhich breaks the admin menu. Chrome, Firefox, and IE9 complain about insecure content and block the whole recipe admin screen, which has to be manually allowed each time. Also, when I browse the post page with a recipe over https, the recipe theme is broken.
I replaced the following line in yumprint-recipe.php
$yumprint_directory = get_option('siteurl') . '/wp-content/plugins/' . dirname(plugin_basename(__FILE__));with this
$yumprint_directory = rtrim( plugin_dir_url( __FILE__ ), "/" );
which grabs the relative protocol (http or https depending on the user’s session) and fixes the admin screen and post content. Chrome, Firefox, and IE still complain about blocking insecure content but the themes display properly.
- The topic ‘Browsing over https breaks recipe theme’ is closed to new replies.