Plugin Directory

Changeset 1819225


Ignore:
Timestamp:
02/09/2018 05:01:33 PM (8 years ago)
Author:
livehelpnow
Message:

Add fixes in 0.1.5 version

Location:
livehelpnow-helpdesk/trunk
Files:
6 edited

Legend:

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

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

    r1809235 r1819225  
    55Requires PHP: 5.4
    66Tested up to: 4.9.1
    7 Stable tag: 0.1.4
     7Stable tag: 0.1.5
    88License GPLv2 or later
    99License URI http://www.gnu.org/licenses/gpl-2.0.html
     
    8888== Changelog ==
    8989
     90= 0.1.5 =
     91* Fixed problem with authentication notice after activation
     92* Fixed problem with displaying both display and hide chat options on page edit screen
     93* Added php required version check (PHP 5.4)
     94
    9095= 0.1.1 =
    9196* Updated "Tested up to section"
  • livehelpnow-helpdesk/trunk/src/class/API/Authentication.php

    r1809225 r1819225  
    151151    public function display_authentication_notice() {
    152152
    153         if ( ! get_option( 'lhn_authentication_info' ) ) {
     153        if ( get_option( 'lhn_authentication_info' ) ) {
    154154            return;
    155155        }
  • livehelpnow-helpdesk/trunk/src/class/Plugin.php

    r1809243 r1819225  
    1313class Plugin extends Abstracts\WPIntegrator implements Interfaces\Hookable {
    1414
     15    const REQUIRED_PHP = '5.4';
     16
    1517    /**
    1618     * Init plugin
     
    2123     */
    2224    public function plugin_init() {
     25
     26        if ( version_compare( phpversion(), self::REQUIRED_PHP, '<' ) ) {
     27            return;
     28        }
    2329
    2430        $this->assets();
     
    7884        $chat->register_hooks();
    7985
     86    }
     87
     88    /**
     89     * Display required PHP version notice.
     90     *
     91     * @action admin_notices
     92     *
     93     * @return void
     94     */
     95    public function display_authentication_notice() {
     96
     97        if ( version_compare( phpversion(), self::REQUIRED_PHP, '>=' ) ) {
     98            return;
     99        }
     100
     101        ?>
     102        <div class="notice notice-error is-dismissible">
     103            <p>
     104                <?php printf( esc_html__( 'LiveHelpNow Help Desk plugin requires PHP %s or higher.' ,'lhnchat' ), self::REQUIRED_PHP ); ?>
     105            </p>
     106        </div>
     107        <?php
    80108    }
    81109
  • livehelpnow-helpdesk/trunk/src/class/Settings.php

    r1809225 r1819225  
    7171    public function chat_display_metabox() {
    7272
    73         if ( ! get_option( 'lhn_display_chat' ) ) {
     73        if ( get_option( 'lhn_display_chat' ) ) {
    7474            return;
    7575        }
  • livehelpnow-helpdesk/trunk/src/templates/admin/settings-page.php

    r1806916 r1819225  
    99
    1010<form action="options.php" method="post">
     11    <?php settings_errors(); ?>
    1112    <?php settings_fields( 'livehelpnow-chat' ); ?>
    1213    <?php do_settings_sections( 'livehelpnow-chat' ); ?>
Note: See TracChangeset for help on using the changeset viewer.