Plugin Directory

Changeset 3019922


Ignore:
Timestamp:
01/10/2024 03:33:57 PM (2 years ago)
Author:
Disqus
Message:

Preparing for 3.0.24 release

Location:
disqus-comment-system/trunk
Files:
4 added
4 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • disqus-comment-system/trunk/README.txt

    r2900993 r3019922  
    33Tags: disqus, comments, engagement, threaded, email, notification, spam, avatars, community, profile, widget
    44Requires at least: 4.4
    5 Tested up to: 6.2
    6 Stable tag: 3.0.23
     5Tested up to: 6.4.2
     6Stable tag: 3.0.24
    77Requires PHP: 5.6
    88
     
    124124
    125125== Changelog ==
     126= 3.0.24 =
     127* Fixed multiple bugs with the manual syncing tool regarding syncing comments without parents and syncing comments missing thread data.
     128* Increased allowable date range for manual syncing tool to allow for easier syncing of historical comment data.
     129* Improved automatic syncing tool's error messaging and troubleshooting with regards to issues with fetching sync status and starting automatic syncing.
     130* Improved the error messages that get exposed to the browser console when issues occur with the manual and automatic syncing tools for easier future troubleshooting.
     131
    126132= 3.0.23 =
    127133* Fixed a bug with the automatic comment import tool with newer versions of WordPress and added tests.
  • disqus-comment-system/trunk/disqus.php

    r2900993 r3019922  
    1616 * Plugin URI:        https://disqus.com/
    1717 * Description:       Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup.
    18  * Version:           3.0.23
     18 * Version:           3.0.24
    1919 * Author:            Disqus
    2020 * Author URI:        https://disqus.com/
     
    2525 */
    2626
    27 $DISQUSVERSION = '3.0.23';
     27$DISQUSVERSION = '3.0.24';
    2828
    2929// If this file is called directly, abort.
  • disqus-comment-system/trunk/rest-api/class-disqus-rest-api.php

    r2900993 r3019922  
    288288            return $this->rest_get_response( $status );
    289289        } catch ( Exception $e ) {
    290             return $this->rest_get_error( 'There was an error fetching sync status.' );
     290            return $this->rest_get_error( 'There was an error fetching sync status. Please go to Disqus.com and check that you are logged into a Disqus account with moderator privileges on this site, and then reload this page. For further troubleshooting, here is a 150 character error message preview: ' . substr( $e, 0, 150 ) );
    291291        }
    292292    }
     
    305305            return $this->rest_get_response( $status );
    306306        } catch ( Exception $e ) {
    307             return $this->rest_get_error( 'There was an error attempting to enable syncing.' );
     307            return $this->rest_get_error( 'There was an error attempting to enable automatic syncing. Please go to Disqus.com and check that you are logged into a Disqus account with moderator privileges on this site, and then reload this page. For further troubleshooting, here is a 150 character error message preview: ' . substr( $e, 0, 150 ) );
    308308        }
    309309    }
     
    322322            return $this->rest_get_response( $status );
    323323        } catch ( Exception $e ) {
    324             return $this->rest_get_error( 'There was an error attempting to disable syncing.' );
     324            return $this->rest_get_error( 'There was an error attempting to disable automatic syncing. Please go to Disqus.com and check that you are logged into a Disqus account with moderator privileges on this site, and then reload this page. For further troubleshooting, here is a 150 character error message preview: ' . substr( $e, 0, 150 ) );
    325325        }
    326326    }
     
    701701        unset( $comment_data['comment_meta'] );
    702702        unset( $comment_data['comment_agent'] );
    703         unset( $comment_data['comment_parent'] );
    704703        unset( $comment_data['comment_type'] );
    705704        unset( $comment_data['comment_date_gmt'] );
     
    764763        }
    765764
    766         if ( null === $wp_post_id || false == $wp_post_id ) {
    767             throw new Exception( 'No post found associated with the thread.' );
    768         }
    769 
    770765        // Find the parent comment, if any.
     766        // To simplify our syncing process and prevent syncing errors,
     767        // still sync the comment even if we don't have its parent comment synced.
    771768        $parent = 0;
    772769        if ( null !== $post['parent'] ) {
     
    778775            $parent_comments = $parent_comment_query->comments;
    779776
    780             if ( empty( $parent_comments ) ) {
    781                 throw new Exception( 'This comment\'s parent has not been synced yet.' );
    782             } else {
     777            if ( $parent_comments ) {
    783778                $parent = $parent_comments[0]->comment_ID;
    784779            }
Note: See TracChangeset for help on using the changeset viewer.