Plugin Directory

Changeset 1879316


Ignore:
Timestamp:
05/22/2018 04:11:58 PM (8 years ago)
Author:
livehelpnow
Message:

API endpoint change

Location:
livehelpnow-helpdesk/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • livehelpnow-helpdesk/trunk/readme.txt

    r1859590 r1879316  
    44Requires at least: 4.5
    55Requires PHP: 5.4
    6 Tested up to: 4.9.5
     6Tested up to: 4.9.6
    77Stable tag: 0.1.8
    88License GPLv2 or later
     
    8989
    9090= 0.1.8 =
    91 * Added check for cURL installed and activated before plugin activation.
     91* Changed widget options API endpoint.
     92* Additional layer of error handling implemented.
    9293
    9394= 0.1.7 =
  • livehelpnow-helpdesk/trunk/src/class/API/WidgetsOptions.php

    r1806916 r1879316  
    2222
    2323        $api = new API();
    24         $response = $api->get_response( 'https://developer.livehelpnow.net/api/ui/hoc/options' );
     24        $response = $api->get_response( 'https://developer.livehelpnow.net/api/ui/embedded/options' );
    2525
    2626        if ( $type != 'options' && $type != 'dictionary' ) {
  • livehelpnow-helpdesk/trunk/src/templates/admin/chat-settings-dictionary.php

    r1806916 r1879316  
    88?>
    99
    10 <?php if ( $widgets_dictionary ) : ?>
     10<?php if ( ! is_wp_error( $widgets_dictionary ) ) : ?>
    1111    <?php $widgets_dictionary_meta = get_post_meta( get_the_ID(), 'chat_dictionary', true ); ?>
    1212    <?php foreach ( $widgets_dictionary as $option ) : ?>
     
    2525        </div>
    2626    <?php endforeach; ?>
     27<?php else : ?>
     28    <?php require_once LHN_CHAT_PLUGIN_DIR_PATH . 'src/templates/admin/api-error-info.php'; ?>
    2729<?php endif; ?>
  • livehelpnow-helpdesk/trunk/src/templates/admin/chat-settings-options.php

    r1806916 r1879316  
    88?>
    99
    10 <?php if ( $widgets_options ) : ?>
     10<?php if ( ! is_wp_error( $widgets_options ) ) : ?>
    1111    <?php $widgets_options_meta = get_post_meta( get_the_ID(), 'chat_options', true ); ?>
    1212    <?php foreach ( $widgets_options as $option ) : ?>
     
    2525        </div>
    2626    <?php endforeach; ?>
     27<?php else : ?>
     28    <?php require_once LHN_CHAT_PLUGIN_DIR_PATH . 'src/templates/admin/api-error-info.php'; ?>
    2729<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.