Support » Plugin: Just Custom Fields » Support for admin SSL conection

  • Resolved netzgestaltung

    (@netzgestaltung)


    Hi, when only having the admin area via https connection, 3 ressources on the jfc settings page are blocked by firefox because of http mixed content.

    the cause is the usage of the constant “WP_PLUGIN_URL” in 2 files

    “just-custom-fields.php” and “components/collection/collection.php”

    i replaced the 3 occurances

    - WP_PLUGIN_URL.'/just-custom-fields/assets/just_custom_fields.js',
    + plugins_url( 'assets/just_custom_fields.js', __FILE__ ),
    
    - wp_register_style('jcf-styles', WP_PLUGIN_URL.'/just-custom-fields/assets/styles.css');
    + wp_register_style('jcf-styles', plugins_url( 'assets/styles.css', __FILE__ ));
    
    - WP_PLUGIN_URL.'/just-custom-fields/components/collection/assets/collection.js'
    + plugins_url( 'components/collection/assets/collection.js', __FILE__ )

    please consider this for an future update.

    details of the problem are described here: https://wordpress.org/ideas/topic/wp_plugin_url-doesnt-take-ssl-into-account

    greets
    tom

    https://wordpress.org/plugins/just-custom-fields/

Viewing 4 replies - 1 through 4 (of 4 total)
  • the same applies to “inc/functions.post”

    - wp_register_style('jcf_edit_post', WP_PLUGIN_URL.'/just-custom-fields/assets/edit_post.css');
    + wp_register_style('jcf_edit_post', plugins_url( 'assets/edit_post.css', __FILE__ ));
    
    - WP_PLUGIN_URL.'/just-custom-fields/assets/edit_post.js',
    + plugins_url( 'assets/edit_post.js', __FILE__ ),

    edit: in inc/functions.post.php its dirname(__FILE__)

    - wp_register_style('jcf_edit_post', WP_PLUGIN_URL.'/just-custom-fields/assets/edit_post.css');
    + wp_register_style('jcf_edit_post', plugins_url( 'assets/edit_post.css', dirname(__FILE__) ));
    
    - WP_PLUGIN_URL.'/just-custom-fields/assets/edit_post.js',
    + plugins_url( 'assets/edit_post.js', dirname(__FILE__) ),

    Second this. Would be great to have working correctly for admin SSL.
    Thank you.
    Stu

    Plugin Author Alex Prokopenko / JustCoded

    (@aprokopenko)

    Thanks for the notify about this issue. Fixed in v3.0.2

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.