WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Spencer Piontkowski
    Member
    Posted 9 months ago #

    Hello.

    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.

    http://wordpress.org/plugins/recipe-card/

Reply

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

Tags

No tags yet.