Changeset 3019922
- Timestamp:
- 01/10/2024 03:33:57 PM (2 years ago)
- Location:
- disqus-comment-system/trunk
- Files:
-
- 4 added
- 4 deleted
- 3 edited
-
README.txt (modified) (2 diffs)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.23.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.23.js.map (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.23.min.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.23.min.js.map (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.24.js (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.24.js.map (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.24.min.js (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.24.min.js.map (added)
-
disqus.php (modified) (2 diffs)
-
rest-api/class-disqus-rest-api.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disqus-comment-system/trunk/README.txt
r2900993 r3019922 3 3 Tags: disqus, comments, engagement, threaded, email, notification, spam, avatars, community, profile, widget 4 4 Requires at least: 4.4 5 Tested up to: 6. 26 Stable tag: 3.0.2 35 Tested up to: 6.4.2 6 Stable tag: 3.0.24 7 7 Requires PHP: 5.6 8 8 … … 124 124 125 125 == 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 126 132 = 3.0.23 = 127 133 * 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 16 16 * Plugin URI: https://disqus.com/ 17 17 * Description: Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup. 18 * Version: 3.0.2 318 * Version: 3.0.24 19 19 * Author: Disqus 20 20 * Author URI: https://disqus.com/ … … 25 25 */ 26 26 27 $DISQUSVERSION = '3.0.2 3';27 $DISQUSVERSION = '3.0.24'; 28 28 29 29 // If this file is called directly, abort. -
disqus-comment-system/trunk/rest-api/class-disqus-rest-api.php
r2900993 r3019922 288 288 return $this->rest_get_response( $status ); 289 289 } 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 ) ); 291 291 } 292 292 } … … 305 305 return $this->rest_get_response( $status ); 306 306 } 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 ) ); 308 308 } 309 309 } … … 322 322 return $this->rest_get_response( $status ); 323 323 } 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 ) ); 325 325 } 326 326 } … … 701 701 unset( $comment_data['comment_meta'] ); 702 702 unset( $comment_data['comment_agent'] ); 703 unset( $comment_data['comment_parent'] );704 703 unset( $comment_data['comment_type'] ); 705 704 unset( $comment_data['comment_date_gmt'] ); … … 764 763 } 765 764 766 if ( null === $wp_post_id || false == $wp_post_id ) {767 throw new Exception( 'No post found associated with the thread.' );768 }769 770 765 // 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. 771 768 $parent = 0; 772 769 if ( null !== $post['parent'] ) { … … 778 775 $parent_comments = $parent_comment_query->comments; 779 776 780 if ( empty( $parent_comments ) ) { 781 throw new Exception( 'This comment\'s parent has not been synced yet.' ); 782 } else { 777 if ( $parent_comments ) { 783 778 $parent = $parent_comments[0]->comment_ID; 784 779 }
Note: See TracChangeset
for help on using the changeset viewer.