Changeset 2900993
- Timestamp:
- 04/19/2023 03:31:07 AM (3 years ago)
- Location:
- disqus-comment-system/trunk
- Files:
-
- 4 added
- 4 deleted
- 4 edited
-
README.txt (modified) (2 diffs)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.22.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.22.js.map (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.22.min.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.22.min.js.map (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.23.js (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.23.js.map (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.23.min.js (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.23.min.js.map (added)
-
admin/css/disqus-admin.css (modified) (1 diff)
-
disqus.php (modified) (2 diffs)
-
rest-api/class-disqus-rest-api.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disqus-comment-system/trunk/README.txt
r2538249 r2900993 1 1 === Disqus Comment System === 2 Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness, tterb 2 Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness, tterb, chrisjtang 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: 5.66 Stable tag: 3.0.2 25 Tested up to: 6.2 6 Stable tag: 3.0.23 7 7 Requires PHP: 5.6 8 8 … … 124 124 125 125 == Changelog == 126 = 3.0.23 = 127 * Fixed a bug with the automatic comment import tool with newer versions of WordPress and added tests. 128 * Improved visual layout of the plugin. Updated corresponding snapshot for frontend test. 129 * Added updated directions for running tests locally. 130 * Update CI/CD to use GitHub actions. 126 131 127 132 = 3.0.22 = -
disqus-comment-system/trunk/admin/css/disqus-admin.css
r1817585 r2900993 31 31 .welcome-panel { 32 32 overflow: hidden; 33 } 34 35 .about-description { 36 font-size: 40px !important; 37 color: #dcdcde; 38 font-weight: bold; 39 align-items: center; 40 text-align: center; 33 41 } 34 42 -
disqus-comment-system/trunk/disqus.php
r2538249 r2900993 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 218 * Version: 3.0.23 19 19 * Author: Disqus 20 20 * Author URI: https://disqus.com/ … … 25 25 */ 26 26 27 $DISQUSVERSION = '3.0.2 2';27 $DISQUSVERSION = '3.0.23'; 28 28 29 29 // If this file is called directly, abort. -
disqus-comment-system/trunk/rest-api/class-disqus-rest-api.php
r2465271 r2900993 353 353 354 354 // Filter out pingbacks/trackings and comments that have been created by Disqus via syncing. 355 $filtered_comments = array_filter( $comments, array( $this, 'is_ pingback_or_disqus_comment' ) );355 $filtered_comments = array_filter( $comments, array( $this, 'is_comment_exportable' ) ); 356 356 357 357 $response_data = array( … … 437 437 438 438 /** 439 * Checks a comment state to determine if it's valid for syncing.439 * Checks a comment state to determine if it's valid for exporting into Disqus. 440 440 * 441 441 * @since 3.0.11 442 442 * @param array $comment The WordPress comment instance. 443 * @return boolean Whether the comment is valid for syncing. 444 */ 445 private function is_pingback_or_disqus_comment( $comment ) { 446 return empty( $comment->comment_type ) && strpos( $comment->comment_agent, 'Disqus' ) === false; 443 * @return boolean Whether the comment is valid for exporting into Disqus. 444 */ 445 private function is_comment_exportable( $comment ) { 446 $is_comment = ( empty( $comment->comment_type ) || 'comment' === $comment->comment_type ); 447 $is_disqus_comment = strpos( $comment->comment_agent, 'Disqus' ) !== false; 448 return $is_comment && ! $is_disqus_comment; 447 449 } 448 450 … … 456 458 private function get_request_data( WP_REST_Request $request ) { 457 459 $content_type = $request->get_content_type(); 458 459 switch ( $content_type['value'] ) { 460 if ( $content_type && $content_type['value'] ) { 461 $content_type_val = $content_type['value']; 462 } else { 463 $content_type_val = null; 464 } 465 466 switch ( $content_type_val ) { 460 467 case 'application/json': 461 468 return $request->get_json_params();
Note: See TracChangeset
for help on using the changeset viewer.