Changeset 1818662
- Timestamp:
- 02/09/2018 01:18:06 AM (8 years ago)
- Location:
- disqus-comment-system/trunk
- Files:
-
- 1 added
- 1 deleted
- 4 edited
-
README.txt (modified) (4 diffs)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.10.min.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.11.min.js (added)
-
admin/class-disqus-admin.php (modified) (2 diffs)
-
disqus.php (modified) (2 diffs)
-
rest-api/class-disqus-rest-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disqus-comment-system/trunk/README.txt
r1818589 r1818662 4 4 Requires at least: 4.4 5 5 Tested up to: 4.9.4 6 Stable tag: 3.0.1 06 Stable tag: 3.0.11 7 7 Requires PHP: 5.4 8 8 … … 23 23 * Keep spam out with our best-in-class anti-spam filter powered by Akismet 24 24 * Single profile for commenting on over 4 million sites including social login support for Facebook, Twitter, and Google accounts 25 * Trusted by sites like Wired, The Atlantic, and EW25 * Trusted by sites like Wired, CBS, and Entertainment Weekly 26 26 27 27 = Disqus Features = … … 89 89 == Installation == 90 90 91 1. Go to **"Plugins"** > **"Add Plugin"** 92 2. Search for **"Disqus Comment System"** by Disqus 93 3. Click **"Install Now"** 94 4. Activate the plugin 95 5. (**Automatic: easiest**) From the Install page of the Disqus plugin settings, follow the Automatic Installation steps to set up Disqus on your site. During this process, you will need to [create a Disqus account](https://disqus.com/profile/signup/) and register your site. This also creates the API application required for enabling Comment Syncing. 96 6. (**Manual: fastest**) Enter your site's [Disqus shortname](https://help.disqus.com/customer/en/portal/articles/466208) in **Site Configuration**. This requires you to have [created a Disqus account](https://disqus.com/profile/signup/) and registered your site. 97 91 98 **NOTE: It is recommended that you [backup your database](http://codex.wordpress.org/Backing_Up_Your_Database) before installing the plugin.** 92 99 93 1. Unpack archive to this archive to the 'wp-content/plugins/' directory inside 94 of WordPress 95 96 * Maintain the directory structure of the archive (all extracted files 97 should exist in 'wp-content/plugins/disqus-comment-system/' 98 99 2. From your blog administration, click on Comments to change settings 100 (WordPress 2.0 users can find the settings under Options > Disqus.) 100 = Syncing comments to WordPress = 101 Comment Syncing copies comments made in Disqus to your WordPress installation as backup in case you ever decide to switch back to native WordPress comments. Syncing is not enabled by default. To enable syncing, you'll need to set it up either by creating an API application (follow [instructions here](https://help.disqus.com/customer/portal/articles/960360)) or via Automatic Installation in the plugin. 102 103 For more information, go to [https://help.disqus.com/customer/portal/articles/960360](https://help.disqus.com/customer/portal/articles/960360) 101 104 102 105 = Installation trouble? = … … 120 123 == Changelog == 121 124 125 = 3.0.11 = 126 127 * Improved UX on updating the site configuration manually 128 * Fixed an issue causing a site crash with PHP version 5.2 129 * Added additional information to support diagnostics 130 122 131 = 3.0.10 = 123 132 -
disqus-comment-system/trunk/admin/class-disqus-admin.php
r1817727 r1818662 103 103 } 104 104 105 if ( ! function_exists( 'get_plugins' ) ) { 106 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 107 } 108 109 global $wp_version; 110 105 111 $admin_js_vars = array( 106 112 'rest' => array( … … 121 127 'name' => $this->get_site_name(), 122 128 'pluginVersion' => $this->version, 129 'allPlugins' => get_plugins(), 130 'phpVersion' => phpversion(), 131 'wordpressVersion' => $wp_version, 123 132 ), 124 133 ); -
disqus-comment-system/trunk/disqus.php
r1818589 r1818662 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.1 018 * Version: 3.0.11 19 19 * Author: Disqus 20 20 * Author URI: https://disqus.com/ … … 69 69 function run_disqus() { 70 70 71 $plugin = new Disqus( '3.0.1 0' );71 $plugin = new Disqus( '3.0.11' ); 72 72 $plugin->run(); 73 73 -
disqus-comment-system/trunk/rest-api/class-disqus-rest-api.php
r1818589 r1818662 334 334 335 335 // Filter out pingbacks/trackings and comments that have been created by Disqus via syncing. 336 $filtered_comments = array_filter( $comments, function ( $value ) { 337 return empty( $value->comment_type ) && strpos( $value->comment_agent, 'Disqus' ) === false; 338 } ); 336 $filtered_comments = array_filter( $comments, array( $this, 'is_pingback_or_disqus_comment' ) ); 339 337 340 338 $response_data = array( … … 353 351 354 352 return $this->rest_get_response( $response_data ); 353 } 354 355 /** 356 * Checks a comment state to determine if it's valid for syncing. 357 * 358 * @since 3.0.11 359 * @param array $comment The WordPress comment instance. 360 * @return boolean Whether the comment is valid for syncing. 361 */ 362 private function is_pingback_or_disqus_comment( $comment ) { 363 return empty( $comment->comment_type ) && strpos( $comment->comment_agent, 'Disqus' ) === false; 355 364 } 356 365
Note: See TracChangeset
for help on using the changeset viewer.