Changeset 1845813
- Timestamp:
- 03/23/2018 04:18:47 PM (8 years ago)
- Location:
- livehelpnow-helpdesk/trunk
- Files:
-
- 4 edited
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/class/Settings.php (modified) (3 diffs)
-
src/templates/admin/chat-widget-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
livehelpnow-helpdesk/trunk/plugin.php
r1819233 r1845813 2 2 /** 3 3 * Plugin Name: Livehelpnow Help Desk 4 * Version: 0.1. 64 * Version: 0.1.7 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
r1819233 r1845813 5 5 Requires PHP: 5.4 6 6 Tested up to: 4.9.1 7 Stable tag: 0.1. 67 Stable tag: 0.1.7 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.7 = 91 * Fixed problem WordPress bug, not allowing template tags in side metabox, causing interference with global object ID. 92 90 93 = 0.1.6 = 91 94 * Fixed problem with not saving option when checkbox is not selected -
livehelpnow-helpdesk/trunk/src/class/Settings.php
r1819233 r1845813 99 99 public function display_chat_display_metabox( $post ) { 100 100 101 $display = get_post_meta( get_the_ID(), 'chat_display', true );101 $display = get_post_meta( $post->ID, 'chat_display', true ); 102 102 require_once LHN_CHAT_PLUGIN_DIR_PATH . 'src/templates/admin/chat-display-settings.php'; 103 103 … … 140 140 public function display_chat_hide_metabox( $post ) { 141 141 142 $hide = get_post_meta( get_the_ID(), 'chat_hide', true );142 $hide = get_post_meta( $post->ID, 'chat_hide', true ); 143 143 require_once LHN_CHAT_PLUGIN_DIR_PATH . 'src/templates/admin/chat-hide-settings.php'; 144 144 … … 177 177 public function display_chat_widget_metabox( $post ) { 178 178 179 $hide = get_post_meta( get_the_ID(), 'chat_widget_id', true );179 $hide = get_post_meta( $post->ID, 'chat_widget_id', true ); 180 180 require_once LHN_CHAT_PLUGIN_DIR_PATH . 'src/templates/admin/chat-widget-settings.php'; 181 181 -
livehelpnow-helpdesk/trunk/src/templates/admin/chat-widget-settings.php
r1806916 r1845813 16 16 <?php if ( $chats->have_posts() ) : ?> 17 17 <select name="chat_widget_id"> 18 <?php while ( $chats->have_posts() ) : ?> 19 <?php $chats->the_post(); ?> 20 <option value="<?php echo get_the_ID(); ?>" <?php selected( get_the_ID(), $meta_widget_id ); ?>> 21 <?php the_title(); ?> 18 <?php foreach ( $chats->get_posts() as $chat ) : ?> 19 <option value="<?php echo $chat->ID; ?>" <?php selected( $chat->ID, $meta_widget_id ); ?>> 20 <?php echo apply_filters( 'the_title', $chat->post_title ); ?> 22 21 </option> 23 <?php end while; ?>22 <?php endforeach; ?> 24 23 </select> 25 24 <?php endif;
Note: See TracChangeset
for help on using the changeset viewer.