Changeset 1819225
- Timestamp:
- 02/09/2018 05:01:33 PM (8 years ago)
- Location:
- livehelpnow-helpdesk/trunk
- Files:
-
- 6 edited
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/class/API/Authentication.php (modified) (1 diff)
-
src/class/Plugin.php (modified) (3 diffs)
-
src/class/Settings.php (modified) (1 diff)
-
src/templates/admin/settings-page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
livehelpnow-helpdesk/trunk/plugin.php
r1809235 r1819225 2 2 /** 3 3 * Plugin Name: Livehelpnow Help Desk 4 * Version: 0.1. 44 * Version: 0.1.5 5 5 * Plugin URI: https://wordpress.org/plugins/livehelpnow-helpdesk/ 6 6 * Description: Include LiveHelpNow chat system on your WordPress website. -
livehelpnow-helpdesk/trunk/readme.txt
r1809235 r1819225 5 5 Requires PHP: 5.4 6 6 Tested up to: 4.9.1 7 Stable tag: 0.1. 47 Stable tag: 0.1.5 8 8 License GPLv2 or later 9 9 License URI http://www.gnu.org/licenses/gpl-2.0.html … … 88 88 == Changelog == 89 89 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 90 95 = 0.1.1 = 91 96 * Updated "Tested up to section" -
livehelpnow-helpdesk/trunk/src/class/API/Authentication.php
r1809225 r1819225 151 151 public function display_authentication_notice() { 152 152 153 if ( !get_option( 'lhn_authentication_info' ) ) {153 if ( get_option( 'lhn_authentication_info' ) ) { 154 154 return; 155 155 } -
livehelpnow-helpdesk/trunk/src/class/Plugin.php
r1809243 r1819225 13 13 class Plugin extends Abstracts\WPIntegrator implements Interfaces\Hookable { 14 14 15 const REQUIRED_PHP = '5.4'; 16 15 17 /** 16 18 * Init plugin … … 21 23 */ 22 24 public function plugin_init() { 25 26 if ( version_compare( phpversion(), self::REQUIRED_PHP, '<' ) ) { 27 return; 28 } 23 29 24 30 $this->assets(); … … 78 84 $chat->register_hooks(); 79 85 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 80 108 } 81 109 -
livehelpnow-helpdesk/trunk/src/class/Settings.php
r1809225 r1819225 71 71 public function chat_display_metabox() { 72 72 73 if ( !get_option( 'lhn_display_chat' ) ) {73 if ( get_option( 'lhn_display_chat' ) ) { 74 74 return; 75 75 } -
livehelpnow-helpdesk/trunk/src/templates/admin/settings-page.php
r1806916 r1819225 9 9 10 10 <form action="options.php" method="post"> 11 <?php settings_errors(); ?> 11 12 <?php settings_fields( 'livehelpnow-chat' ); ?> 12 13 <?php do_settings_sections( 'livehelpnow-chat' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.