Plugin Directory

Changeset 1859590


Ignore:
Timestamp:
04/17/2018 07:52:29 AM (8 years ago)
Author:
livehelpnow
Message:

cURL check before activation

Location:
livehelpnow-helpdesk/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • livehelpnow-helpdesk/trunk/plugin.php

    r1845813 r1859590  
    22/**
    33 * Plugin Name:     Livehelpnow Help Desk
    4  * Version:         0.1.7
     4 * Version:         0.1.8
    55 * Plugin URI:      https://wordpress.org/plugins/livehelpnow-helpdesk/
    66 * Description:     Include LiveHelpNow chat system on your WordPress website.
  • livehelpnow-helpdesk/trunk/readme.txt

    r1845813 r1859590  
    44Requires at least: 4.5
    55Requires PHP: 5.4
    6 Tested up to: 4.9.1
    7 Stable tag: 0.1.7
     6Tested up to: 4.9.5
     7Stable tag: 0.1.8
    88License GPLv2 or later
    99License URI http://www.gnu.org/licenses/gpl-2.0.html
     
    8888== Changelog ==
    8989
     90= 0.1.8 =
     91* Added check for cURL installed and activated before plugin activation.
     92
    9093= 0.1.7 =
    9194* Fixed problem WordPress bug, not allowing template tags in side metabox, causing interference with global object ID.
  • livehelpnow-helpdesk/trunk/src/class/Plugin.php

    r1819225 r1859590  
    102102        <div class="notice notice-error is-dismissible">
    103103            <p>
    104                 <?php printf( esc_html__( 'LiveHelpNow Help Desk plugin requires PHP %s or higher.' ,'lhnchat' ), self::REQUIRED_PHP ); ?>
     104                <?php printf( esc_html__( 'LiveHelpNow Help Desk plugin requires PHP %s or higher.', 'lhnchat' ), self::REQUIRED_PHP ); ?>
    105105            </p>
    106106        </div>
     
    114114     */
    115115    public function on_plugin_activation() {
     116
     117        if ( ! function_exists('curl_version') ) {
     118            printf( '<p>%s<p>', __('This plugin requires cURL extension to be installed and activated in order to work.', 'lhnchat' ) );
     119            @trigger_error( __( 'This plugin requires cURL extension to be installed and activated.', 'lhnchat' ), E_USER_ERROR );
     120        }
    116121
    117122        if ( ! wp_next_scheduled ( 'lhn_destroy_user_session_schedule' ) ) {
Note: See TracChangeset for help on using the changeset viewer.