Changeset 2907273
- Timestamp:
- 05/03/2023 06:07:40 AM (3 years ago)
- Location:
- thrivedesk
- Files:
-
- 4 added
- 8 edited
- 1 copied
-
tags/1.0.12 (copied) (copied from thrivedesk/trunk)
-
tags/1.0.12/database/Scripts (added)
-
tags/1.0.12/database/Scripts/MigrationScript.php (added)
-
tags/1.0.12/includes/views/shortcode/conversations.php (modified) (1 diff)
-
tags/1.0.12/readme.txt (modified) (2 diffs)
-
tags/1.0.12/src/Plugins/WPPostSync.php (modified) (1 diff)
-
tags/1.0.12/thrivedesk.php (modified) (4 diffs)
-
trunk/database/Scripts (added)
-
trunk/database/Scripts/MigrationScript.php (added)
-
trunk/includes/views/shortcode/conversations.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Plugins/WPPostSync.php (modified) (1 diff)
-
trunk/thrivedesk.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
thrivedesk/tags/1.0.12/includes/views/shortcode/conversations.php
r2900454 r2907273 104 104 <?php 105 105 $params = parse_url( $link['url'] ?? '', PHP_URL_QUERY ); 106 parse_str( $params, $query ); 106 if ( $params ) { 107 parse_str( $params, $query ); 108 } 107 109 $page = $query['page'] ?? 1; 108 110 ?> -
thrivedesk/tags/1.0.12/readme.txt
r2904244 r2907273 4 4 Requires at least: 4.9 5 5 Tested up to: 6.2 6 Stable Tag: 1.0.1 16 Stable Tag: 1.0.12 7 7 Requires PHP: 5.5 8 8 License: GNU General Public License v2.0 or later … … 224 224 225 225 == Changelog == 226 = 1.0.12 = 227 - Fix: Legacy post types support for WPPostSync integration 228 226 229 = 1.0.11 = 227 230 - Updated ThriveDesk plan list -
thrivedesk/tags/1.0.12/src/Plugins/WPPostSync.php
r2839767 r2907273 122 122 */ 123 123 public function get_post_search_result(string $query_string = ''): array { 124 $td_helpdesk_settings = get_td_helpdesk_options(); 125 $post_sync_types = $td_helpdesk_settings['td_helpdesk_post_sync'] ?? false; 126 127 if ( !$post_sync_types ) { 128 return [ 129 'data' => [] 130 ]; 131 } 132 124 133 $x_query = new \WP_Query( 125 134 [ 126 135 's' => $query_string, 127 'post_type' => get_option('thrivedesk_post_type_sync_option'),136 'post_type' => $post_sync_types, 128 137 ] 129 138 ); 139 130 140 $search_posts = []; 131 141 while ($x_query->have_posts()) : -
thrivedesk/tags/1.0.12/thrivedesk.php
r2904244 r2907273 6 6 * Plugin URI: https://www.thrivedesk.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash 7 7 * Tags: live chat, helpdesk, free live chat, knowledge base, thrivedesk 8 * Version: 1.0.1 18 * Version: 1.0.12 9 9 * Author: ThriveDesk 10 10 * Author URI: https://profiles.wordpress.org/thrivedesk/ … … 34 34 use ThriveDesk\Conversations\Conversation; 35 35 use ThriveDesk\Services\PortalService; 36 use ThriveDeskDBMigrations\Scripts\MigrationScript; 36 37 37 38 // Exit if accessed directly. … … 49 50 * @var string 50 51 */ 51 public $version = '1.0.1 1';52 public $version = '1.0.12'; 52 53 53 54 /** … … 114 115 } 115 116 117 require_once(THRIVEDESK_DIR . '/database/Scripts/MigrationScript.php'); 118 119 MigrationScript::instance(); 116 120 Conversation::instance(); 117 121 Assistant::instance(); -
thrivedesk/trunk/includes/views/shortcode/conversations.php
r2900454 r2907273 104 104 <?php 105 105 $params = parse_url( $link['url'] ?? '', PHP_URL_QUERY ); 106 parse_str( $params, $query ); 106 if ( $params ) { 107 parse_str( $params, $query ); 108 } 107 109 $page = $query['page'] ?? 1; 108 110 ?> -
thrivedesk/trunk/readme.txt
r2904244 r2907273 4 4 Requires at least: 4.9 5 5 Tested up to: 6.2 6 Stable Tag: 1.0.1 16 Stable Tag: 1.0.12 7 7 Requires PHP: 5.5 8 8 License: GNU General Public License v2.0 or later … … 224 224 225 225 == Changelog == 226 = 1.0.12 = 227 - Fix: Legacy post types support for WPPostSync integration 228 226 229 = 1.0.11 = 227 230 - Updated ThriveDesk plan list -
thrivedesk/trunk/src/Plugins/WPPostSync.php
r2839767 r2907273 122 122 */ 123 123 public function get_post_search_result(string $query_string = ''): array { 124 $td_helpdesk_settings = get_td_helpdesk_options(); 125 $post_sync_types = $td_helpdesk_settings['td_helpdesk_post_sync'] ?? false; 126 127 if ( !$post_sync_types ) { 128 return [ 129 'data' => [] 130 ]; 131 } 132 124 133 $x_query = new \WP_Query( 125 134 [ 126 135 's' => $query_string, 127 'post_type' => get_option('thrivedesk_post_type_sync_option'),136 'post_type' => $post_sync_types, 128 137 ] 129 138 ); 139 130 140 $search_posts = []; 131 141 while ($x_query->have_posts()) : -
thrivedesk/trunk/thrivedesk.php
r2904244 r2907273 6 6 * Plugin URI: https://www.thrivedesk.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash 7 7 * Tags: live chat, helpdesk, free live chat, knowledge base, thrivedesk 8 * Version: 1.0.1 18 * Version: 1.0.12 9 9 * Author: ThriveDesk 10 10 * Author URI: https://profiles.wordpress.org/thrivedesk/ … … 34 34 use ThriveDesk\Conversations\Conversation; 35 35 use ThriveDesk\Services\PortalService; 36 use ThriveDeskDBMigrations\Scripts\MigrationScript; 36 37 37 38 // Exit if accessed directly. … … 49 50 * @var string 50 51 */ 51 public $version = '1.0.1 1';52 public $version = '1.0.12'; 52 53 53 54 /** … … 114 115 } 115 116 117 require_once(THRIVEDESK_DIR . '/database/Scripts/MigrationScript.php'); 118 119 MigrationScript::instance(); 116 120 Conversation::instance(); 117 121 Assistant::instance();
Note: See TracChangeset
for help on using the changeset viewer.