Plugin Directory

Changeset 2324732


Ignore:
Timestamp:
06/15/2020 10:49:15 PM (6 years ago)
Author:
marcshowpass
Message:

add option to disable ssl

Location:
showpass/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • showpass/trunk/js/showpass-calendar.js

    r2321924 r2324732  
    452452                    method: "GET",
    453453                    url: url,
    454                     success: function (data) {
    455                         console.log(data);
     454                    success: function(data) {
    456455                        if (first_day_of_the_month == 7) {
    457456                            for (let j = first_day_of_the_month - 6; j <= days_in_month; j++) {
     
    493492                            let image_event = data.results[i].image || default_square;
    494493                            let tmp = month_event + '_' + day_event;
    495                             console.log(event_slug);
    496494                            let html_tmp = "<div class='showpass-calendar-item-single' data-slug='" + event_slug + "' data-month='" + month + "' data-day='" + day_event + "' data-year='" + year + "' style='background:url(" + image_event + ") no-repeat;'><div class='space-filler'></div></div>";
    497495                            $('#event_on_' + tmp).append(html_tmp);
  • showpass/trunk/showpass-wordpress-plugin-admin-page.php

    r2240115 r2324732  
    3737        <label for="main_api_url">Show Product/Event description tab in the purchase widget.</label><br/><br/>
    3838
     39        <input type="checkbox" name="option_disable_verify_ssl" value="true" <?php checked('true', get_option('option_disable_verify_ssl'), true); ?>/>
     40        <label for="main_api_url">Disable SSL verification when connecting to the API..</label><br />
     41        <small>Disable to fix Local SSL Expired issue on servers running an older operating system</small><br/><br/>
     42
    3943    <?php submit_button(); ?>
    4044
  • showpass/trunk/showpass-wordpress-plugin-shortcode.php

    r2321924 r2324732  
    1212/* making connection and taking the data from API */
    1313function call_showpass_api($url) {
     14 
    1415  $args = array(
    15       'timeout' => 30,
    16       'verify_ssl' => true
     16    'timeout' => 30,
     17    'sslverify' => true
    1718  );
     19
     20  if (get_option('option_disable_verify_ssl')) {
     21    $args['sslverify'] = false;
     22  };
     23
    1824  $response = wp_safe_remote_get($url, $args);
    1925  $http_code = wp_remote_retrieve_response_code($response);
  • showpass/trunk/showpass-wordpress-plugin.php

    r2321924 r2324732  
    55     Description: List events, display event details and products. Use the Showpass purchase widget for on site ticket & product purchases all with easy to use shortcodes. See our git repo here for full documentation. https://github.com/showpass/showpass-wordpress-plugin
    66     Author: Showpass / Up In Code Inc.
    7      Version: 3.4.5
     7     Version: 3.4.6
    88     Author URI: https://www.showpass.com
    99     */
     
    4949    register_setting('wpshp-settings-group', 'option_keep_shopping');
    5050    register_setting('wpshp-settings-group', 'option_show_widget_description');
     51    register_setting('wpshp-settings-group', 'option_disable_verify_ssl');
    5152}
    5253
Note: See TracChangeset for help on using the changeset viewer.