Recipe Card
Browsing over https breaks recipe theme (1 post)

  1. Spencer Piontkowski
    Posted 2 years ago #


    On the blogs I administer I use define('FORCE_SSL_ADMIN',TRUE); in wp-config.php which 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Recipe Card
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Spencer Piontkowski
  • This topic is not resolved
  • WordPress version: 3.6.1


No tags yet.