Plugin Directory

Changeset 1497571


Ignore:
Timestamp:
09/17/2016 10:14:55 PM (10 years ago)
Author:
socialcompare
Message:

socialcompare_embed: fix https support

Location:
socialcompare-embed/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • socialcompare-embed/trunk/readme.txt

    r636589 r1497571  
    33Tags: socialcompare, embed, comparison, table, matrix, compare, grid, chart, csv, excel
    44Requires at least: 2.9
    5 Tested up to: 3.4.2
    6 Stable tag: 1.2
     5Tested up to: 4.6.1
     6Stable tag: 1.3
    77
    88Allows to easily embed a comparison table from SocialCompare or SocialCompare.biz within a post or page.
     
    6464== Changelog ==
    6565
     66= 1.3 =
     67Fix HTTPS support
     68
    6669= 1.2 =
    6770Add scrolling option
  • socialcompare-embed/trunk/socialcompare_embed.php

    r636589 r1497571  
    44Plugin URI: http://socialcompare.com/
    55Description: Allows to easily embed a SocialCompare comparison within a post. [socialcompare]http://socialcompare.com/en/comparison/apples-and-oranges[/socialcompare] or [sc]http://socialcompare.com/en/w/apples-and-oranges[/sc]
    6 Version: 1.2
     6Version: 1.3
    77Author: SocialCompare (Alexis)
    88Author URI: http://socialcompare.com/en/member/alexis
    99License: GPL2
    1010*/
    11 /*  Copyright 2010-2012  Alexis Fruhinsholz  (email: alexis@socialcompare.com)
     11/*  Copyright 2010-2016  Alexis Fruhinsholz  (email: alexis@socialcompare.com)
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    3131    //check if the url is a SocialCompare embeddable url
    3232    if (preg_match('@^https?://((?:[^/]*\.)?socialcompare.com/\w\w/)(w|comparison)(/[a-z\-_0-9]+)(#.*)?$@i', $content, $matches)) {
    33         $widgetUrl='http://'.$matches[1].'w'.$matches[3];
     33        $widgetUrl='https://'.$matches[1].'w'.$matches[3];
    3434        if (isset($matches[4])) {
    3535            $widgetUrl.=$matches[4];
     
    200200
    201201    /* Add SocialCompare oembed definition to include wordpress builtin oembed support for SocialCompare's url. Include the comparison url on a single line during post or page edition. See Wordpress oembed documentation for detail */
    202     wp_oembed_add_provider('#http://socialcompare.com/\w\w/(w|comparison)/*#i', 'http://socialcompare.com/oembed', true);
     202    wp_oembed_add_provider('#https?://socialcompare.com/\w\w/(w|comparison)/*#i', 'https://socialcompare.com/oembed', true);
    203203
    204204    add_action('admin_menu', 'socialcompare_admin_menu');
Note: See TracChangeset for help on using the changeset viewer.