Ready to get started?Download WordPress


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

  1. Spencer Piontkowski
    Posted 9 months 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.



You must log in to post.

About this Plugin

About this Topic

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


No tags yet.