Plugin Directory

Changeset 2907273


Ignore:
Timestamp:
05/03/2023 06:07:40 AM (3 years ago)
Author:
thrivedesk
Message:

Update to version 1.0.12 from GitHub

Location:
thrivedesk
Files:
4 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • thrivedesk/tags/1.0.12/includes/views/shortcode/conversations.php

    r2900454 r2907273  
    104104                            <?php
    105105                            $params = parse_url( $link['url'] ?? '', PHP_URL_QUERY );
    106                             parse_str( $params, $query );
     106                            if ( $params ) {
     107                                parse_str( $params, $query );
     108                            }
    107109                            $page = $query['page'] ?? 1;
    108110                            ?>
  • thrivedesk/tags/1.0.12/readme.txt

    r2904244 r2907273  
    44Requires at least: 4.9
    55Tested up to: 6.2
    6 Stable Tag: 1.0.11
     6Stable Tag: 1.0.12
    77Requires PHP: 5.5
    88License: GNU General Public License v2.0 or later
     
    224224
    225225== Changelog ==
     226= 1.0.12 =
     227- Fix: Legacy post types support for WPPostSync integration
     228
    226229= 1.0.11 =
    227230- Updated ThriveDesk plan list
  • thrivedesk/tags/1.0.12/src/Plugins/WPPostSync.php

    r2839767 r2907273  
    122122     */
    123123    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
    124133        $x_query      = new \WP_Query(
    125134            [
    126135                's'         => $query_string,
    127                 'post_type' => get_option('thrivedesk_post_type_sync_option'),
     136                'post_type' => $post_sync_types,
    128137            ]
    129138        );
     139
    130140        $search_posts = [];
    131141        while ($x_query->have_posts()) :
  • thrivedesk/tags/1.0.12/thrivedesk.php

    r2904244 r2907273  
    66 * Plugin URI:          https://www.thrivedesk.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags:                live chat, helpdesk, free live chat, knowledge base, thrivedesk
    8  * Version:             1.0.11
     8 * Version:             1.0.12
    99 * Author:              ThriveDesk
    1010 * Author URI:          https://profiles.wordpress.org/thrivedesk/
     
    3434use ThriveDesk\Conversations\Conversation;
    3535use ThriveDesk\Services\PortalService;
     36use ThriveDeskDBMigrations\Scripts\MigrationScript;
    3637
    3738// Exit if accessed directly.
     
    4950     * @var string
    5051     */
    51     public $version = '1.0.11';
     52    public $version = '1.0.12';
    5253
    5354    /**
     
    114115            }
    115116
     117            require_once(THRIVEDESK_DIR . '/database/Scripts/MigrationScript.php');
     118
     119            MigrationScript::instance();
    116120            Conversation::instance();
    117121            Assistant::instance();
  • thrivedesk/trunk/includes/views/shortcode/conversations.php

    r2900454 r2907273  
    104104                            <?php
    105105                            $params = parse_url( $link['url'] ?? '', PHP_URL_QUERY );
    106                             parse_str( $params, $query );
     106                            if ( $params ) {
     107                                parse_str( $params, $query );
     108                            }
    107109                            $page = $query['page'] ?? 1;
    108110                            ?>
  • thrivedesk/trunk/readme.txt

    r2904244 r2907273  
    44Requires at least: 4.9
    55Tested up to: 6.2
    6 Stable Tag: 1.0.11
     6Stable Tag: 1.0.12
    77Requires PHP: 5.5
    88License: GNU General Public License v2.0 or later
     
    224224
    225225== Changelog ==
     226= 1.0.12 =
     227- Fix: Legacy post types support for WPPostSync integration
     228
    226229= 1.0.11 =
    227230- Updated ThriveDesk plan list
  • thrivedesk/trunk/src/Plugins/WPPostSync.php

    r2839767 r2907273  
    122122     */
    123123    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
    124133        $x_query      = new \WP_Query(
    125134            [
    126135                's'         => $query_string,
    127                 'post_type' => get_option('thrivedesk_post_type_sync_option'),
     136                'post_type' => $post_sync_types,
    128137            ]
    129138        );
     139
    130140        $search_posts = [];
    131141        while ($x_query->have_posts()) :
  • thrivedesk/trunk/thrivedesk.php

    r2904244 r2907273  
    66 * Plugin URI:          https://www.thrivedesk.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags:                live chat, helpdesk, free live chat, knowledge base, thrivedesk
    8  * Version:             1.0.11
     8 * Version:             1.0.12
    99 * Author:              ThriveDesk
    1010 * Author URI:          https://profiles.wordpress.org/thrivedesk/
     
    3434use ThriveDesk\Conversations\Conversation;
    3535use ThriveDesk\Services\PortalService;
     36use ThriveDeskDBMigrations\Scripts\MigrationScript;
    3637
    3738// Exit if accessed directly.
     
    4950     * @var string
    5051     */
    51     public $version = '1.0.11';
     52    public $version = '1.0.12';
    5253
    5354    /**
     
    114115            }
    115116
     117            require_once(THRIVEDESK_DIR . '/database/Scripts/MigrationScript.php');
     118
     119            MigrationScript::instance();
    116120            Conversation::instance();
    117121            Assistant::instance();
Note: See TracChangeset for help on using the changeset viewer.